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
5
org/testdata/latex.html
vendored
5
org/testdata/latex.html
vendored
|
@ -35,4 +35,9 @@ $$\sum_{i=1}^n a_n$$
|
|||
\end{xyz}
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>
|
||||
$2 + 2$, $3 - 3$
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
1
org/testdata/latex.org
vendored
1
org/testdata/latex.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$
|
||||
|
|
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