BenjaminHoegh / ParsedownExtended

ParsedownExtended is an extention for Parsedown, offering additional features and functionalities.
https://benjaminhoegh.github.io/ParsedownExtended
MIT License
37 stars 7 forks source link

Line return in MathJax breaks (double antislash \\) #52

Closed brainexcerpts closed 7 months ago

brainexcerpts commented 7 months ago

Describe the bug

Using MathJax the following won't output correctly:

  $$
  L(\vec v + \vec w) = L(\vec v ) + L(\vec w) \\
  L(c \ \vec v) = c \ L(\vec v)
  $$

It outputs the following: image One of the anti-slash is gone.

Expected Behavior

This is what's expected:

image

Side not: ParsedownMath-1.2 produces the correct output.

Great project by the way and really helpful thank you so much!

Relevant log output

No response

Environment

No response

Code of Conduct

BenjaminHoegh commented 7 months ago

I take a look :)

BenjaminHoegh commented 7 months ago

Did you run this with $ParsedownExtended->setSetting('math', true) ?

brainexcerpts commented 7 months ago

:scream: Yes that was it! Thank you :pray: Sorry for the false report.

BenjaminHoegh commented 7 months ago

no problem :)