jrblevin / markdown-mode

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

Undocumented math keywords break fontification of math content #767

Open saf-dmitry opened 1 year ago

saf-dmitry commented 1 year ago

Undocumented math keywords like (eq:foo) and \eqref{foo} defined in the markdown-mode-font-lock-keywords-math variable don't get properly fontified and break the fontification of math content.

Expected Behavior

Math keywords are fontified properly and don't break the fontification of math content in the buffer.

Actual Behavior

Math keywords don't get properly fontified and break the fontification of math content.

Steps to Reproduce

  1. Enable math support in Markdown buffer
  2. Write something like (eq:foo) $a$
  3. See fontification of math broken

Backtrace

markdown-mode math support enabled
Error during redisplay: (jit-lock-function 1) signaled (void-variable markdown-markup-face)

Software Versions