The inline math regex pattern /(?<!\$)\$([^$]+)\$(?!\$)/g used in pdfImportService.ts mistakenly matches standard dollar signs used for currency (e.g. $10 and $20), translating them to broken PreTeXt <m>10 and </m>20 tags. The parser should be improved to avoid matching plain currency identifiers.
The inline math regex pattern
/(?<!\$)\$([^$]+)\$(?!\$)/gused inpdfImportService.tsmistakenly matches standard dollar signs used for currency (e.g.$10 and $20), translating them to broken PreTeXt<m>10 and </m>20tags. The parser should be improved to avoid matching plain currency identifiers.