[GH-ISSUE #597] MD037: False positive with LaTex Formulars using multiple subscripts #470

Closed
opened 2026-03-03 01:27:12 +03:00 by kerem · 4 comments
Owner

Originally created by @Knalltuete5000 on GitHub (Oct 5, 2022).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/597

With the usage of LaTex formulars in markdown text and multiple subscripts in the formular a false positive of the MD037- Spaces inside emphasis markers can be created with the usage of additional italic words.

Following is an example for creating a false-positive under the describe circumstances:

$E_{K_1}(M) = C$ using _ParamName_ $M$ creating _Result_ $C$ with usage of $K_1$

This issue was found in the VS-Code extension version v0.48.1

Originally created by @Knalltuete5000 on GitHub (Oct 5, 2022). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/597 With the usage of LaTex formulars in markdown text and multiple subscripts in the formular a false positive of the [`MD037- Spaces inside emphasis markers`](https://github.com/DavidAnson/markdownlint/blob/v0.26.2/doc/Rules.md#md037---spaces-inside-emphasis-markers) can be created with the usage of additional _italic_ words. Following is an example for creating a false-positive under the describe circumstances: ```md $E_{K_1}(M) = C$ using _ParamName_ $M$ creating _Result_ $C$ with usage of $K_1$ ``` This issue was found in the VS-Code extension version v0.48.1
kerem 2026-03-03 01:27:12 +03:00
Author
Owner

@DavidAnson commented on GitHub (Oct 5, 2022):

FYI, the syntax is not part of Markdown. Support for that is provided in the extension via the texmath plugin. However, rules that don't use the parser won't benefit from that. I'll have a look.

<!-- gh-comment-id:1268709867 --> @DavidAnson commented on GitHub (Oct 5, 2022): FYI, the $$ syntax is not part of Markdown. Support for that is provided in the extension via the texmath plugin. However, rules that don't use the parser won't benefit from that. I'll have a look.
Author
Owner

@zabbarob commented on GitHub (Oct 11, 2022):

Since GitHub also supports math in Markdown, I'd appreciate if math support could be enabled :)

<!-- gh-comment-id:1274717703 --> @zabbarob commented on GitHub (Oct 11, 2022): Since [GitHub also supports math in Markdown](https://github.blog/2022-05-19-math-support-in-markdown/), I'd appreciate if math support could be enabled :)
Author
Owner

@SandroMartens commented on GitHub (Nov 13, 2022):

Same issue here, but with multiple multiplication marks:
$ x * y * z$

<!-- gh-comment-id:1312831053 --> @SandroMartens commented on GitHub (Nov 13, 2022): Same issue here, but with multiple multiplication marks: `$ x * y * z$`
Author
Owner

@mimoo commented on GitHub (Dec 19, 2022):

same issue here, not just with this rule but with a number of other rules:

src/plonk/zkpm.md:58:7 MD011/no-reversed-links Reversed link syntax [(\omega h)[(a(h) + \beta S_{\sigma1}(h) + \gamma)(b(h) + \beta S_{\sigma2}(h) + \gamma)(c(h) + \beta S_{\sigma3}(h) + \gamma)]]
<!-- gh-comment-id:1358123304 --> @mimoo commented on GitHub (Dec 19, 2022): same issue here, not just with this rule but with a number of other rules: ``` src/plonk/zkpm.md:58:7 MD011/no-reversed-links Reversed link syntax [(\omega h)[(a(h) + \beta S_{\sigma1}(h) + \gamma)(b(h) + \beta S_{\sigma2}(h) + \gamma)(c(h) + \beta S_{\sigma3}(h) + \gamma)]] ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/markdownlint#470
No description provided.