mitya57 / python-markdown-math

Math extension for Python-Markdown
https://pypi.org/project/python-markdown-math/
BSD 3-Clause "New" or "Revised" License
120 stars 27 forks source link

\begin{} \end{} environment * simble #26

Closed lytoooo0 closed 4 years ago

lytoooo0 commented 4 years ago

when using \begin{equation*} e^{\pi i} + 1 = 0 \end{equation*} environment, the "*" seems to be eaten and the result will be

Screen Shot 2020-03-10 at 06 49 11

maybe a particular rules is necessary. Thank you.

lytoooo0 commented 4 years ago

see the official link https://docs.mathjax.org/en/latest/input/tex/eqnumbers.html

mitya57 commented 4 years ago

I cannot reproduce this.

>>> import markdown
>>> from mdx_math import MathExtension
>>> md = markdown.Markdown(extensions=[MathExtension()])
>>> source = r"\begin{equation*} e^{\pi i} + 1 = 0 \end{equation*}"
>>> print(md.convert(source))
<p>
<script type="math/tex; mode=display">\begin{equation*} e^{\pi i} + 1 = 0 \end{equation*}</script>
</p>

How are you using this extension? Can you paste HTML output that you get?

mitya57 commented 4 years ago

No reply, closing.