markdown-preview.nvim
markdown-preview.nvim copied to clipboard
Cannot use ```math code block
Describe the bug
There is no option to use the math
fenced code block in the style of GitHub to render LaTeX expressions. (But I might have missed the option.)
To Reproduce
Write
This is the Pythagorean equation
$$
a^2 + b^2 = c^2
$$
This is the Pythagorean equation
``` math
a^2 + b^2 = c^2
```
The top one renders via a LaTeX renderer, the bottom one does not.
Expected behavior
I would like a code block rendered with ```math ```
to be displayed with a LaTeX renderer as if it has been written surrounded by $$ $$.
Screenshots
Desktop (please complete the following information):
- OS: Ubuntu 22.04
This would be very helpful to synchronize MarkdownPreview with GitHub markdown rendering.
Anyone know where in the code to begin attempting to add this feature?