Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] distinguish list from math environment #434

Closed
Freed-Wu opened this issue Sep 30, 2021 · 2 comments
Closed

[feature] distinguish list from math environment #434

Freed-Wu opened this issue Sep 30, 2021 · 2 comments
Labels

Comments

@Freed-Wu
Copy link

Some markdowns support math environment, e.g.,

$$1
+ 1$$

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

image

Thanks!

@DavidAnson
Copy link
Owner

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

@Freed-Wu
Copy link
Author

Great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants