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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue