While the pdfLaTeX build shows a single A and a single B for the first two paragraphs, the LaTeXML build contains a doubled-up BB (the A can also be doubled-up by uncommenting the corresponding morestring line).
Edit: I extended the minimal document with \lstinline!xBx!, which shows that the morestring feature isn't breaking every occurrence of the character, which probably explains why we haven't noted the problem earlier.
Build:
While the pdfLaTeX build shows a single A and a single B for the first two paragraphs, the LaTeXML build contains a doubled-up BB (the A can also be doubled-up by uncommenting the corresponding
morestring
line).The problem was originally reported to me in https://github.com/modelica/ModelicaSpecification/issues/3572, where the use of
morestring
makes more sense than in the minimal example included here.Edit: I extended the minimal document with
\lstinline!xBx!
, which shows that themorestring
feature isn't breaking every occurrence of the character, which probably explains why we haven't noted the problem earlier.