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

latex not compatible with kramdown when $$ and $ in the same line #32

Open
zxteloiv opened this issue Dec 26, 2015 · 0 comments
Open

latex not compatible with kramdown when $$ and $ in the same line #32

zxteloiv opened this issue Dec 26, 2015 · 0 comments

Comments

@zxteloiv
Copy link

take a sample.md file with the below content

every $\beta_i$ under the basis $\alpha_1,\dots,\alpha_n$ have coordinate: $$\begin{pmatrix}
c_{1i} \\
c_{2i} \\
... \\
c_{ni}
\end{pmatrix}$$
transition matrix: $C=(C_{ij})_{n\times n}$

using kramed 0.5.5 we get

$ ./bin/kramed ../../tmp/sample.md 

<p>every $\beta<em>i$ under the basis $\alpha_1,\dots,\alpha_n$ have coordinate: $$\begin{pmatrix}
c</em>{1i} \
c<em>{2i} \
... \
c</em>{ni}
\end{pmatrix}$$
transition matrix: $C=(C<em>{ij})</em>{n\times n}$</p>

using kramdown 1.5 we get

$ kramdown sample.md

<p>every $\beta_i$ under the basis $\alpha_1,\dots,\alpha_n$ have coordinate: <script type="math/tex">\begin{pmatrix}
c_{1i} \\
c_{2i} \\
... \\
c_{ni}
\end{pmatrix}</script>
transition matrix: $C=(C_{ij})_{n\times n}$</p>

I could rewrite the $$ block in a new line instead but I do need some inline function. Hope this could be fixed.

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

1 participant