mdit-py-plugins icon indicating copy to clipboard operation
mdit-py-plugins copied to clipboard

added the dollar signs as equation delimiters

Open redstoneleo opened this issue 2 years ago • 2 comments

Mathjax recognizes TeX math equations by delimiters(https://docs.mathjax.org/en/latest/input/tex/delimiters.html), without delimiters it is nearly impossible for Mathjax to render the equations in webpage.

redstoneleo avatar Jan 19 '23 06:01 redstoneleo

Thanks for submitting your first pull request! You are awesome! :hugs:
If you haven't done so already, check out EBP's Code of Conduct and our Contributing Guide, as this will greatly help the review process.
Welcome to the EBP community! :tada:

welcome[bot] avatar Jan 19 '23 06:01 welcome[bot]

Just found this issue and this would also be useful for me. The output of the dollarmath plugin doesn't render using the default MathJax configuration. However @redstoneleo, I would suggest to use \(...\) and \[...\] instead of $...$ and $$...$$, respectively, since they are used by the MathJax default config ($...$ are even disabled by default), which is explained in the link in you OP.

Is there a chance to get this merged or are there reasons why this is not wanted?

camoz avatar Jul 23 '24 12:07 camoz