jrblevin/markdown-mode

Caret signs inside math are fontified as Markdown markup

saf-dmitry opened this issue · 0 comments

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

  • Markdown Mode: From Git on 2023-10-16
  • Emacs: 28.2
  • OS: macOS Catalina

Additional Info

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