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.

MD037 does not ignore '_' in link reference

See original GitHub issue

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

github_iconTop GitHub Comments

2reactions
DavidAnsoncommented, May 2, 2020

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.

0reactions
acasconecommented, May 2, 2020

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.

Read more comments on GitHub >

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

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