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.
12 lines
412 B
Text
12 lines
412 B
Text
without latex delimiters the =_{i=1}= in =\sum_{i=1}^n a_n= is interpreted as subscript.
|
|
we support =\(...\)=, =\[...\]=, =$$...$$= and =\begin{$env}...\end{$env}= as latex fragment delimiters.
|
|
|
|
- \sum_{i=1}^n a_n (without latex delimiter)
|
|
- \(\sum_{i=1}^n a_n\)
|
|
- \[\sum_{i=1}^n a_n\]
|
|
- $$\sum_{i=1}^n a_n$$
|
|
- \begin{xyz}\sum_{i=1}^n a_n\end{xyz}
|
|
- \begin{xyz}
|
|
\sum_{i=1}^n a_n
|
|
\end{xyz}
|
|
- $2 + 2$, $3 - 3$
|