mpi-astronomy / arxiv_display

born during a science coffee at MPIA, generates screen content for the corridors
https://mpi-astronomy.github.io/arxiv_display
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

[BUG] Markdown and Mathjax interference on $_x and italic #19

Closed mfouesneau closed 1 year ago

mfouesneau commented 1 year ago

Describe the bug when name $_k...$ the rendering bugs. It seems that Markdown takes priority and tries an italic interpretation.

mfouesneau commented 1 year ago

Fixed in Arxiv_on_deck_2

re.sub(r"(\w+?)\s?\$_(\w)", "$\\1_\\2", latex, 0, re.MULTILINE)

https://github.com/mfouesneau/arxiv_on_deck_2/commit/e9b9c1a6f7049fbcdf95cd94848f2d4c090eca4b