Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

align, equation, eqnarray disappears converting from md to html #3816

Closed
dataopt opened this issue Jul 26, 2017 · 1 comment
Closed

align, equation, eqnarray disappears converting from md to html #3816

dataopt opened this issue Jul 26, 2017 · 1 comment

Comments

@dataopt
Copy link

dataopt commented Jul 26, 2017

Using the command pandoc --mathjax -t html test.md -o test.html (macOS Sierra, pandoc nightly version 2.0 compiled with pandoc-types 1.17.0.5, texmath 0.9.4.1, skylighting 0.3.3), the following Markdown input

# This is my book

This is an equation:
\begin{equation}
y+2 = 3
\end{equation}

This is a system of equations:
\begin{align*}
x^2+y^2 & = 2 \\
\sin(y) & = 0.5
\end{align*}

This is Euler's formula:
\begin{eqnarray*}
e^{i\pi} + 1 & = & 0.
\end{eqnarray*}

gets converted to the following html:

<h1 id="this-is-my-book">This is my book</h1>
<p>This is an equation: </p>
<p>This is a system of equations: </p>
<p>This is Euler’s formula: </p>

In other words, all the equations are missing in the html output. However, latex output is fine.

@jgm
Copy link
Owner

jgm commented Jul 26, 2017

This is because these environments are now parsed as inline rather than block.
So the writer just needs a small tweak, to render these raw inline environments when mathjax is used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants