question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Markdown: Link key converted to lower-case

See original GitHub issue

Prettier 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:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
AndrewKvalheimcommented, Mar 29, 2022

Just seconding that this cuts against readability and correctness. Often link reference definitions read as a glossary, e.g.:

[darktable]: https://www.darktable.org/
[js;dr]: https://indieweb.org/js;dr
[LinuxFest Northwest]: https://www.linuxfestnorthwest.org/
[OpenStreetMap]: https://www.openstreetmap.org/about
[SeaGL]: https://seagl.org/
[uBlock Origin]: https://github.com/gorhill/uBlock

and it would be a spelling error to change a label’s capitalization.

3reactions
jacobbuckcommented, Nov 8, 2020

I’ve just come across this issue with CHANGELOG.md files following the Keep a Changelog format. For example:

Input:

## [Unreleased]
…
[Unreleased]: https://github.com/username/project/compare/v1.0.0...HEAD

Output:

## [Unreleased]
…
[unreleased]: https://github.com/username/project/compare/v1.0.0...HEAD

Expected behaviour:

No change from input.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found