Markdown: Link key converted to lower-case
See original GitHub issuePrettier 1.19.1 Playground link
--parser markdown
Input:
- see[Link to Foo][master-LinkToFoo]
[master-LinkToFoo]: http://foo.com
Output:
- see[Link to Foo][master-linktofoo]
[master-linktofoo]: http://foo.com
Expected behavior:
- see[Link to Foo][master-LinkToFoo]
[master-LinkToFoo]: http://foo.com
Making the key lower case reduces the readability of Camel or Pascal cased keys. This seems to have changed recently? Was the change intentional? Can you share the justification?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:7 (3 by maintainers)
Top Results From Across the Web
How to link to a named anchor in Multimarkdown?
All references in section list should be converted to lowercase text as it is shown in the example above. The link to the...
Read more >lowdown — Markdown reference for lowdown - Ubuntu Manpage
This document describes the Markdown syntax accepted by lowdown(1). ... by stripping spaces, converting to lower-case, and substituting unknown characters.
Read more >Markdown syntax for files, widgets, and wikis - Azure DevOps
Here you can find some basic Markdown syntax guidance and ... You can link to work items by entering the # key and...
Read more >Markdown Cheat Sheet
Basic Syntax ; Unordered List, - First item - Second item - Third item ; Code, `code` ; Horizontal Rule, --- ; Link,...
Read more >GitLab Flavored Markdown (GLFM)
The IDs are generated from the content of the header according to the following rules: All text is converted to lowercase. All non-word...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Just seconding that this cuts against readability and correctness. Often link reference definitions read as a glossary, e.g.:
and it would be a spelling error to change a label’s capitalization.
I’ve just come across this issue with
CHANGELOG.md
files following the Keep a Changelog format. For example:Input:
Output:
Expected behaviour:
No change from input.