Skip to content

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

@zxteloiv

Description

@zxteloiv

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions