[GH-ISSUE #357] MD037/no-space-in-emphasis triggers when using LaTex block #2147

Closed
opened 2026-03-07 20:05:01 +03:00 by kerem · 1 comment
Owner

Originally created by @ghost on GitHub (Dec 13, 2020).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/357

when I write something like this:

$$
x * y = x * (y_1 + y_2 + \cdots + y_n)
$$

it says MD037/no-space-in-emphasis: Spaces inside emphasis markers. But it's just * in LaTex block, and I think this should be fixed :)

image

Originally created by @ghost on GitHub (Dec 13, 2020). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/357 when I write something like this: ```md $$ x * y = x * (y_1 + y_2 + \cdots + y_n) $$ ``` it says MD037/no-space-in-emphasis: Spaces inside emphasis markers. But it's just `*` in LaTex block, and I think this should be fixed :) ![image](https://user-images.githubusercontent.com/49479124/102000480-eb40b180-3d22-11eb-9d6d-3af5eef39f2c.png)
kerem 2026-03-07 20:05:01 +03:00
Author
Owner

@marek-zeleny commented on GitHub (Apr 25, 2021):

Hi, there's a very similar problem with * within a LaTeX block.

Some text $a * b$ some *highlighted* text.

Text between the first * (within the LaTeX expression) and the second * (starting the highlighted text) gets underlined as an error MD037.

By the way, thanks for doing this, it's an awesome tool :)

<!-- gh-comment-id:826346603 --> @marek-zeleny commented on GitHub (Apr 25, 2021): Hi, there's a very similar problem with `*` within a LaTeX block. ``` Some text $a * b$ some *highlighted* text. ``` Text between the first `*` (within the LaTeX expression) and the second `*` (starting the highlighted text) gets underlined as an error MD037. By the way, thanks for doing this, it's an awesome tool :)
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#2147
No description provided.