Joplin: Highlight is buggy when combined with LaTeX equations

Created on 19 May 2020  路  4Comments  路  Source: laurent22/joplin

When two distant LaTeX equations contain the symbol _ (used for subscripts in LaTeX and for italic in Mrkdown), the text in between is highlighted as italic text.

The same problem also occurs within the same equation if two _ are present.

Environment

Joplin version: 1.0.201 (e65af8c)
Platform: macOS
OS specifics: 10.14.4

Steps to reproduce

Type the following in a note:

$x_i$ Lorem Ipsum $y_i$.

The text between _ will be highlighted incorrectly as italic: i$ Lorem Ipsum $y

Describe what you expected to happen

I expect _ within equations to be ignored by the highlighter.

bug desktop upstream

All 4 comments

I only see now that this is related to #3054.

fixed by #3703

Nice, thanks!

Was this page helpful?
0 / 5 - 0 ratings