-
Notifications
You must be signed in to change notification settings - Fork 46
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
Latex support #334
Comments
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗 |
Nonetheless, the syntax is not included in CommonMark spec so mdformat "core" will not support it. |
Yes, this seem to solve the problem, thanks! I use it with nbQA and my final config for - repo: https://github.com/nbQA-dev/nbQA
rev: 1.3.1
hooks:
- id: nbqa-black
additional_dependencies: [black==22.6.0]
- id: nbqa-isort
additional_dependencies: [isort==5.10.1]
- id: nbqa-flake8
additional_dependencies: [flake8==3.9.2]
- id: nbqa-mdformat
name: nbqa-mdformat
entry: nbqa mdformat
alias: nbqa-mdformat
additional_dependencies:
- mdformat==0.7.14
- mdformat-myst |
Context
I use Latex in my Markdown, then it is rendered with MathJax (in Jupyter Notebook).
But now
mdformat
reformats my Latex code as follows:So after formatting it stops to be valid Latex and renders as string.
Proposal
Escape Latex notation in mdformat.
$$ ... $$
block (and maybe in$ ... $
block). But this is error prone =(Tasks and updates
No response
The text was updated successfully, but these errors were encountered: