current support for latex fragments was inline only, i.e. lines containing block elements (e.g. a line starting with `* `, i.e. a headline) will not be parsed as part of the latex fragment but the respective block element. Parsing latex blocks at the block level should fix that. Note that in any case we don't do any processing and just emit the raw latex (leaving the rendering to e.g. js).
23 lines
772 B
HTML
23 lines
772 B
HTML
<p>without latex delimiters the <code class="verbatim">_{i=1}</code> in <code class="verbatim">\sum_{i=1}^n a_n</code> is interpreted as subscript.
|
|
we support <code class="verbatim">\(...\)</code>, <code class="verbatim">\[...\]</code>, <code class="verbatim">$$...$$</code> and <code class="verbatim">\begin{$env}...\end{$env}</code> as latex fragment delimiters.</p>
|
|
<ul>
|
|
<li>∑<sub>i=1</sub>^n a_n (without latex delimiter)</li>
|
|
<li>\(\sum_{i=1}^n a_n\)</li>
|
|
<li>\[\sum_{i=1}^n a_n\]</li>
|
|
<li>$$\sum_{i=1}^n a_n$$</li>
|
|
<li>\begin{xyz}\sum_{i=1}^n a_n\end{xyz}</li>
|
|
<li>
|
|
\begin{xyz}
|
|
\sum_{i=1}^n a_n
|
|
\end{xyz}
|
|
</li>
|
|
<li>$2 + 2$, $3 - 3$</li>
|
|
<li>
|
|
\begin{xyz}
|
|
latex block ignores block lvl elements (e.g. list - line starting with -)
|
|
a = b
|
|
- c
|
|
- d
|
|
\end{xyz}
|
|
</li>
|
|
</ul>
|