chirun-ncl / chirun

A Python package providing the command line interface for building flexible and accessible content with Chirun.
https://chirun.org.uk/
Other
29 stars 4 forks source link

Using $ as the delimiter for \verb means it absorbs everything afterwards #139

Open christianp opened 1 year ago

christianp commented 1 year ago

This might be a plasTeX problem.

Here's an example:

\documentclass{article}

\begin{document}

\verb|verbatim text| should not enter math mode or whatevs

\verb$verbatim text$ should not enter math mode or whatevs

\end{document}

the first line, using | as the delimiter, looks OK - only verbatim text is rendered in a <code> tag.

The second line breaks, and absorbs the rest of the code, up to and including \end{document}.