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:
parent
f1361615ed
commit
115a8b9c1b
4 changed files with 18 additions and 7 deletions
1
org/testdata/latex.pretty_org
vendored
1
org/testdata/latex.pretty_org
vendored
|
@ -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$
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue