MD037 does not ignore '_' in link reference
See original GitHub issueIn vscode, I see a warning for _Setup_ and _Installation_
complaining about “Spaces inside emphasis markers” for _ and _
but no error for *Setup* and *Installation*
.
I assume that the behavior with the asterisk is correct, and the underscore is incorrect. I hope the underscore is not the correct interpretation of the rule.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Markdownlint - Visual Studio Marketplace
markdownlint is an extension for the Visual Studio Code editor that includes a ... Link and image reference definitions should be needed.
Read more >Ignore link errors - support - HUGO
Specifically, I want to temporarily ignore cross-reference link errors when the link target does not exist. As a general rule, I don't think...
Read more >markdownlint - npm
Map of identifiers to strings for linting. When Markdown content is not available as files, it can be passed as strings. The keys...
Read more >Bookdown text references not working if URL contains special ...
The problem was not caused by special characters but the fact that the link was too long, so the line in LaTeX was...
Read more >markdownlint-cli: Versions - Openbase
Add MD051 / link-fragments : Link fragments should be valid ... -ing modules that may not be referenced; Fix issue with absolute paths...
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 FreeTop 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
Top GitHub Comments
You are correct that this is a bug in markdownlint. ‘_’ is allowed in a link label, so ideally the linter would recognize that and not try to treat it as the start of an emphasis. Thank you for the example – I will look to improve this in a future release.
Ok, I feel like I might have wasted your time. It’s related to a reference style link on the line before.
Please see: https://dlaa.me/markdownlint/#%25m%23 Issue 114 [reference_link] _Setup_ and _Installation_ <-- issue [reference_link] *Setup* and *Installation* <-- no issue [reference_link]%3A http%3A%2F%2Fwww.example.com
EDIT: updated to show issue with underscore vs not, but still this seems like user error. It was just unexpected.