[GH-ISSUE #434] [feature] distinguish list from math environment #362

Closed
opened 2026-03-03 01:26:12 +03:00 by kerem · 2 comments
Owner

Originally created by @Freed-Wu on GitHub (Sep 30, 2021).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/434

Some markdowns support math environment, e.g.,

$$1
+ 1$$

However, markdownlint will think the line started with +, -, *
is a list:

image

Thanks!

Originally created by @Freed-Wu on GitHub (Sep 30, 2021). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/434 Some markdowns support math environment, e.g., ```tex $$1 + 1$$ ``` However, markdownlint will think the line started with `+, -, *` is a list: ![image](https://user-images.githubusercontent.com/32936898/135430104-7a512df7-a907-4268-a543-92423f3c35a7.png) Thanks!
kerem 2026-03-03 01:26:12 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@DavidAnson commented on GitHub (Sep 30, 2021):

To add new behavior to the Markdown parser, you can use plugins: https://github.com/DavidAnson/markdownlint#optionsmarkdownitplugins

The VS Code extension includes the markdown-it-texmath plugin to support math syntax like you show: https://www.npmjs.com/package/markdown-it-texmath

<!-- gh-comment-id:931429417 --> @DavidAnson commented on GitHub (Sep 30, 2021): To add new behavior to the Markdown parser, you can use plugins: https://github.com/DavidAnson/markdownlint#optionsmarkdownitplugins The VS Code extension includes the `markdown-it-texmath` plugin to support math syntax like you show: https://www.npmjs.com/package/markdown-it-texmath
Author
Owner

@Freed-Wu commented on GitHub (Sep 30, 2021):

Great!

<!-- gh-comment-id:931522789 --> @Freed-Wu commented on GitHub (Sep 30, 2021): Great!
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#362
No description provided.