ryanfox / sphinx-markdown-tables

A markdown table plugin for Sphinx
GNU General Public License v3.0
59 stars 15 forks source link

LaTeX support? #14

Closed rodorgas closed 4 years ago

rodorgas commented 6 years ago

LaTeX isn't rendered inside a table.

For example, this code:

| Column 1 | Column 2       |
| -------- | -------------- |
| Row 1    | $e^{i\pi}+1=0$ |

It's rendered by sphinx-markdown-tables as:

latex by sphinx-markdown-tables

Another parser (Typora) will render as:

latex by typora
ryanfox commented 6 years ago

If you have LaTeX outside of a table, is it rendered properly?

rodorgas commented 6 years ago

Yes, latex outside of tables are rendered correctly.

ryanfox commented 6 years ago

You could use sphinx's mathjax extension. I have confirmed it works both in regular paragraph and table bodies.

Note from mathjax's documentation,

The default math delimiters are $$...$$ and \[...\] for displayed mathematics, and \(...\) for in-line mathematics. Note in particular that the $...$ in-line delimiters are not used by default.