jrblevin / markdown-mode

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

Don't treat backslashes as escapes inside literal blocks #768

Closed jimporter closed 1 year ago

jimporter commented 1 year ago

Description

Backslashes get fontified as markup characters in too many situations. In particular, a backslash inside a literal block (e.g. code, math) should just be a literal backslash, not the introducer of an escape sequence.

It might be worthwhile to add some further regression tests here, but the one I did add fails without the fix, and passes with it.

Related Issue

See #766.

Type of Change

Checklist