simov / markdown-viewer

Markdown Viewer / Browser Extension
MIT License
1.02k stars 132 forks source link

[mathjax] Markdown Quote Symbol (>) being rendered with MathJax blocks #172

Open danielcs88 opened 2 years ago

danielcs88 commented 2 years ago

Quote Markdown characters are being rendered inside MathJax, specifically the Quote (>) symbols.

Usually, I type homework assignments either in Typora or Visual Studio Code, and for answers, I usually wrap them in Quote paragraphs.

For example,

  1. What is the quadratic formula?

    $$ x={\frac {-b\pm {\sqrt {b^{2}-4ac}}}{2a}} $$

However, when opening this file on Chrome, it will render like this:

image

Instead of,

image

I know you mentioned in the README,

The following rules apply to your content when mathjax is enabled:

Regular dollar sign $ in text that is not part of a math formula should be escaped: \$ Regular markdown escaping for parentheses: ( and ), and brackets: [ and ] is not supported. MathJax will convert anything between these delimiters to math formulas, unless they are wrapped in backticks: \( or fenced code blocks.


However, is there a possibility to include the Quote Symbol (>) as an exception since it is a Paragraph tool in Markdown?

Thanks!

simov commented 2 years ago

Thanks for the thorough explanation, seems like something that maybe needs fixing in here.