jrblevin / markdown-mode

Emacs Markdown Mode
http://jblevins.org/projects/markdown-mode/
GNU General Public License v3.0
875 stars 160 forks source link

Caret signs inside math are fontified as Markdown markup #802

Closed saf-dmitry closed 8 months ago

saf-dmitry commented 8 months ago

Paired caret signs inside math are fontified as Markdown markup.

Expected Behavior

Caret signs as part of math are fontified according to the type of content (i.e., math).

Actual Behavior

Inside math contents paired caret signs with no space in-between are fontified and propertized as Markdown markup:

Screen Shot 2023-10-16 at 20 17 32

This is especially misleading when hiding Markdown syntax is enabled.

Steps to Reproduce

See the example above.

Backtrace

Software Versions

Additional Info

See the related issue #766 and the corresponding discussion concerning the markdown-literal-faces internal variable.