While I can guess that the parsing code is within https://github.com/jgm/pandoc/blob/main/src/Text/Pandoc/Parsing/Math.hs, I should learn Haskell to propose an alternative solution. Lua was definitely simpler to learn (or at least to know enough for implementing filters). Cheers, Claudio Il giorno martedì 17 gennaio 2023 alle 15:15:39 UTC+1 Albert Krewinkel ha scritto: > > Claudio Di Vita writes: > > > However I was wondering if the parsing can be fixed/improved. > > My personal opinion is that the current rules for math parsing strike a > nice balance between simplicity and usability. > > But I guess nothing is ever set in stone, and if you have a suggestion > for new set of rules to govern parsing, I for one would be curious to > hear about it. 👍 > > > Il Mar 17 Gen 2023, 13:27 Albert Krewinkel < > > albert...-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> ha scritto: > > > > > > Claudio Di Vita writes: > > > > > reading the documentation, with the extension tex_math_dollars > > > enabled (that's the default) anything between two $ (or two $$) > > > characters will be treated as TeX math. > > > > > > However, I think that when such extension is enabled, the > > document > > > parsing, including the metadata, is a bit inaccurate, because > > also > > > strings like ${value1}/${value2} are treated like TeX math. > > > > One solution is to backslash escape the dollar characters, as in > > > > \${value1}/\${value2} > > > > > > > > -- > > Albert Krewinkel > > GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 > > > > -- > > You received this message because you are subscribed to a topic > > in the Google Groups "pandoc-discuss" group. > > To unsubscribe from this topic, visit https://groups.google.com/d > > /topic/pandoc-discuss/V5fTt9aN_AI/unsubscribe. > > To unsubscribe from this group and all its topics, send an email > > to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit https:// > > groups.google.com/d/msgid/pandoc-discuss/ > > 87fsc9xs68.fsf%40zeitkraut.de. > > > -- > Albert Krewinkel > GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 > -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/747eddbe-d05c-4be4-a622-4db217c2d194n%40googlegroups.com.