Katex: Math inside HTML table breaks

Created on 29 Oct 2019  路  1Comment  路  Source: KaTeX/KaTeX

KaTex cannot render equations when they are inside an html table

<table>
    <tr>
        <td>$p_1$</td>
    </tr>
</table>

Although it can render inside a <span> (perhaps only <span>; <div> also does not allow rendering)

<span>$p_1$<span>

Tested in Atom's Markdown Preview Enhanced as a test (which allows both KaTex and MathJax modes; KaTex does not render while MathJax renders correctly) and Joplin (uses only KaTex; does not render)

bug

Most helpful comment

I believe this is a duplicate of #2100, which is solved on master branch via PR #2103 but not yet in a release (perhaps should be). You can fix it temporarily by adding a border-collapse rule as in #2103.

>All comments

I believe this is a duplicate of #2100, which is solved on master branch via PR #2103 but not yet in a release (perhaps should be). You can fix it temporarily by adding a border-collapse rule as in #2103.

Was this page helpful?
0 / 5 - 0 ratings