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.
Claudio Di Vita <claudio...@gmail.com> 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 <claudio...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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...@googlegroups.com.
> 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