DavidAnson / vscode-markdownlint

Markdown linting and style checking for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=DavidAnson.vscode-markdownlint
MIT License
897 stars 166 forks source link

MD037/no-space-in-emphasis after LaTeX formula #289

Closed srezasm closed 9 months ago

srezasm commented 1 year ago

When using the double underscore (_) as an emphasis marker in Markdown, the linter raises the "MD037/no-space-in-emphasis" warning even though there is no space between the emphasis ()s and the surrounded texts.

The reason is that earlier in the same line, I used a (_) in the LaTeX formula to make a subscript.

Problematic paragraph:
$J_{train}$ is the fraction of _training set_ that has been misclassified.

Display style:
$J_{train}$ is the fraction of training set that has been misclassified.

DavidAnson commented 1 year ago

Duplicate of this issue for the library: https://github.com/DavidAnson/markdownlint/issues/597

DavidAnson commented 9 months ago

[Re-posting this comment GitHub seems to have lost]

This issue is fixed in the latest version of the markdownlint library which will be used by the upcoming release of this extension.

https://dlaa.me/markdownlint/#%25m%23%20Issue%20289%0A%0A%24J_%7Btrain%7D%24%20is%20the%20fraction%20of%20_training%20set_%20that%20has%20been%20misclassified.%0A