markdown-preview.nvim icon indicating copy to clipboard operation
markdown-preview.nvim copied to clipboard

Cannot use ```math code block

Open jjeffrey opened this issue 2 years ago • 2 comments

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 image

Desktop (please complete the following information):

  • OS: Ubuntu 22.04

jjeffrey avatar Nov 17 '22 23:11 jjeffrey

This would be very helpful to synchronize MarkdownPreview with GitHub markdown rendering.

LinuxIsCool avatar Nov 09 '23 19:11 LinuxIsCool

Anyone know where in the code to begin attempting to add this feature?

LinuxIsCool avatar Nov 09 '23 19:11 LinuxIsCool