Fix latex fragment parsing

delimiters are not always 2 in length - $ being the exception. Also we have to
make sure to handle both $ and $$ delimiters.

Not proud of this solution but can't think of anything simpler right now - will
come back to this later hopefully.
This commit is contained in:
Niklas Fasching 2020-01-17 00:55:11 +01:00
parent f1361615ed
commit 115a8b9c1b
4 changed files with 18 additions and 7 deletions

View file

@ -35,4 +35,9 @@ $$\sum_{i=1}^n a_n$$
\end{xyz}
</p>
</li>
<li>
<p>
$2 + 2$, $3 - 3$
</p>
</li>
</ul>

View file

@ -9,3 +9,4 @@ we support =\(...\)=, =\[...\]=, =$$...$$= and =\begin{$env}...\end{$env}= as la
- \begin{xyz}
\sum_{i=1}^n a_n
\end{xyz}
- $2 + 2$, $3 - 3$

View file

@ -9,3 +9,4 @@ we support =\(...\)=, =\[...\]=, =$$...$$= and =\begin{$env}...\end{$env}= as la
- \begin{xyz}
\sum_{i=1}^n a_n
\end{xyz}
- $2 + 2$, $3 - 3$