BMPixel / moffee

moffee: Make Markdown Ready to Present
https://moffee.readthedocs.io
MIT License
913 stars 41 forks source link

Multi-line formula RENDERING bug. #11

Closed H-Lumos closed 2 months ago

H-Lumos commented 2 months ago

Right markdown syntax used, wrong rendering output.

## this is a level 2 title

now, let's test formula feature, Maxwell's Equations are shown below:

$$
\nabla \cdot \vec B = 0 \\
\nabla \times \vec B = - \frac{\partial \vec E}{\partial t}
$$

Side preview on VSCode:

image

After moffee live .md, wrong output:

image
BMPixel commented 2 months ago

Thank you. I'll look into it. Maybe it's about configs for MathJax.

BMPixel commented 2 months ago

MathJax v3, which is used in moffee, does not support double backslash for new lines. Since MathJax is no longer mantained, I change to Ketax in this commit. It should be working now. Before next release, to apply the changes, please install moffee from the repo.