texmacs / markdown

A markdown converter plugin for TeXmacs
GNU General Public License v3.0
25 stars 1 forks source link

Inline fractions are sometime interpreted as bullet points #42

Closed fariedabuzaid closed 1 year ago

fariedabuzaid commented 2 years ago

Happens preferably (but non-deterministically) if multiple fractions are used in a single inline math environment

In [Browser:] image

In TeXmacs: image

@mdbenito see also https://gitlab.com/iaai/appliedAI/transferlab/tfl-website/-/commit/90a541c594aa7563cc3689d22725f30a68738cc9

mdbenito commented 2 years ago

The problem is not the inline fraction but the fact that the math is broken into multiple lines and one line starts with a hyphen, which is interpreted by the markdown renderer as a bullet point. In theory, there is a safeguard against this in https://github.com/texmacs/markdown/blob/9ef379264847ce8bb9adbb0acfa515fa5d6757ae/progs/markdownout.scm#L238-L245, but it seems not to work in this case.