branch: elpa/markdown-mode commit e0de26db9519b92a2e976de673134df4efa50a79 Author: James Cherti <60946298+jamesche...@users.noreply.github.com> Commit: James Cherti <60946298+jamesche...@users.noreply.github.com>
Add $%*+/<=>_|&' to the markdown-mode syntax table as punctuation. --- CHANGES.md | 1 + markdown-mode.el | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index aeaceeecee..3da109a47e 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -18,6 +18,7 @@ - Support drag and drop features on Windows and multiple files' drag and drop - Added cmark and cmark-gfm to the markdown command list. - Disable `imenu-submenus-on-top` by default [GH-882][] + - Add $%*+/<=>_|&' to the markdown-mode syntax table as punctuation. [gh-847]: https://github.com/jrblevin/markdown-mode/issues/847 [gh-861]: https://github.com/jrblevin/markdown-mode/pull/861 diff --git a/markdown-mode.el b/markdown-mode.el index fc1796b344..671210e5a8 100644 --- a/markdown-mode.el +++ b/markdown-mode.el @@ -3721,6 +3721,18 @@ SEQ may be an atom or a sequence." (defvar markdown-mode-syntax-table (let ((tab (make-syntax-table text-mode-syntax-table))) (modify-syntax-entry ?\" "." tab) + (modify-syntax-entry ?$ "." tab) ; Might appear in inline content + (modify-syntax-entry ?% "." tab) ; Could appear in URLs + (modify-syntax-entry ?* "." tab) ; Emphasis (bold/italic) + (modify-syntax-entry ?+ "." tab) ; Used in lists + (modify-syntax-entry ?/ "." tab) ; Might appear in inline content or URLs + (modify-syntax-entry ?< "." tab) ; For autolinks and embedded HTML + (modify-syntax-entry ?= "." tab) ; Underlining in setext headers + (modify-syntax-entry ?> "." tab) ; Blockquotes and HTML + (modify-syntax-entry ?_ "." tab) ; Used for emphasis/bold + (modify-syntax-entry ?| "." tab) ; Used in tables + (modify-syntax-entry ?& "." tab) ; HTML entities + (modify-syntax-entry ?' "." tab) ; Apostrophe as punctuation tab) "Syntax table for `markdown-mode'.")