tylingsoft / markdown-plus

Markdown editor with extra features.
http://mdp.tylingsoft.com/
2.12k stars 395 forks source link

fix '>' and '<' not working in inline math env. #33

Closed songsuoyuan closed 9 years ago

songsuoyuan commented 9 years ago

Math inline environment not support '>' and '<' symbols.

Test: $x > y$ Return: ParseError: KaTeX parse error: Unexpected character: '&' at position 0: ̲>

Fix it by replacing '>' and '<' by '>' and '<' before passing text into katex.

Also, the mac version markdown plus has the same problem.

tylerlong commented 9 years ago

Thank you for the PR