Variable: markdown-mode-font-lock-keywords
markdown-mode-font-lock-keywords is a variable defined in
markdown-mode.el.
Value
Large value
((markdown-match-yaml-metadata-begin
(1 'markdown-markup-face))
(markdown-match-yaml-metadata-end
(1 'markdown-markup-face))
(markdown-match-yaml-metadata-key
(1 'markdown-metadata-key-face)
(2 'markdown-markup-face)
(3 'markdown-metadata-value-face))
(markdown-match-gfm-open-code-blocks
(1 markdown-markup-properties)
(2 markdown-markup-properties nil t)
(3 markdown-language-keyword-properties nil t)
(4 markdown-language-info-properties nil t)
(5 markdown-markup-properties nil t))
(markdown-match-gfm-close-code-blocks
(0 markdown-markup-properties))
(markdown-fontify-gfm-code-blocks)
(markdown-fontify-tables)
(markdown-match-fenced-start-code-block
(1 markdown-markup-properties)
(2 markdown-markup-properties nil t)
(3 markdown-language-keyword-properties nil t)
(4 markdown-language-info-properties nil t)
(5 markdown-markup-properties nil t))
(markdown-match-fenced-end-code-block
(0 markdown-markup-properties))
(markdown-fontify-fenced-code-blocks)
(markdown-match-pre-blocks
(0 'markdown-pre-face))
(markdown-fontify-headings)
(markdown-match-declarative-metadata
(1 'markdown-metadata-key-face)
(2 'markdown-markup-face)
(3 'markdown-metadata-value-face))
(markdown-match-pandoc-metadata
(1 'markdown-markup-face)
(2 'markdown-markup-face)
(3 'markdown-metadata-value-face))
(markdown-fontify-hrs)
("\\(?1:^\\|[^\\]\\)\\(?2:\\(?3:~~\\)\\(?4:[^ \n \\]\\|[^ \n ]\\(?:.\\|\n[^\n]\\)*?[^\\ ]\\)\\(?5:~~\\)\\)"
(3 markdown-markup-properties)
(4 'markdown-strike-through-face)
(5 markdown-markup-properties))
(markdown-match-code
(1 markdown-markup-properties prepend)
(2 'markdown-inline-code-face prepend)
(3 markdown-markup-properties prepend))
("\\(?1:<kbd>\\)\\(?2:\\(?:.\\|\n[^\n]\\)*?\\)\\(?3:</kbd>\\)"
(1 markdown-markup-properties)
(2 'markdown-inline-code-face)
(3 markdown-markup-properties))
(markdown-fontify-angle-uris)
("<\\(\\(?:\\sw\\|\\s_\\|\\s.\\)+@\\(?:\\sw\\|\\s_\\|\\s.\\)+\\)>" quote markdown-plain-url-face)
(markdown-match-html-tag
(1 'markdown-html-tag-delimiter-face t)
(2 'markdown-html-tag-name-face t)
(3 'markdown-html-tag-delimiter-face t)
("\\(\\<[[:alpha:]:-]+\\>\\)\\(\\s-*\\(=\\)\\s-*\\(\".*?\"\\|'.*?'\\|[^'\">[:space:]]+\\)?\\)?"
(progn
(goto-char
(match-end 2))
(match-end 3))
nil
(1 'markdown-html-attr-name-face)
(3 'markdown-html-tag-delimiter-face nil t)
(4 'markdown-html-attr-value-face nil t)))
("\\(&#?[[:alnum:]]+;\\)" quote markdown-html-entity-face)
(markdown-fontify-list-items)
("\\(?1:\\[\\^\\)\\(?2:.+?\\)\\(?3:\\]\\)"
(1 markdown-markup-properties)
(2
(markdown--footnote-marker-properties))
(3 markdown-markup-properties))
("\\(?1:\\^\\)\\(?2:\\[\\)\\(?3:\\(?:.\\|\n[^\n]\\)*?\\)\\(?4:\\]\\)"
(1 markdown-markup-properties)
(2 markdown-markup-properties)
(3
(markdown--pandoc-inline-footnote-properties))
(4 markdown-markup-properties))
(markdown-match-includes
(1 markdown-markup-properties)
(2 markdown-markup-properties nil t)
(3 markdown-include-title-properties nil t)
(4 markdown-markup-properties nil t)
(5 markdown-markup-properties)
(6 'markdown-url-face)
(7 markdown-markup-properties))
(markdown-fontify-inline-links)
(markdown-fontify-reference-links)
(markdown-fontify-wiki-links)
("^ \\{0,3\\}\\(?1:\\[\\)\\(?2:[^]\n]+?\\)\\(?3:\\]\\)\\(?4::\\)\\s *\\(?5:.*?\\)\\s *\\(?6: \"[^\"]*\"$\\|$\\)"
(1 'markdown-markup-face)
(2 'markdown-reference-face)
(3 'markdown-markup-face)
(4 'markdown-markup-face)
(5 'markdown-url-face)
(6 'markdown-link-title-face))
(markdown-fontify-plain-uris)
(markdown-match-math-single
(1 'markdown-markup-face prepend)
(2 'markdown-math-face append)
(3 'markdown-markup-face prepend))
(markdown-match-math-double
(1 'markdown-markup-face prepend)
(2 'markdown-math-face append)
(3 'markdown-markup-face prepend))
(markdown-match-math-display
(1 'markdown-markup-face prepend)
(3 'markdown-math-face append)
(4 'markdown-markup-face prepend))
(markdown-match-bold
(1 markdown-markup-properties prepend)
(2 'markdown-bold-face append)
(3 markdown-markup-properties prepend))
(markdown-match-italic
(1 markdown-markup-properties prepend)
(2 'markdown-italic-face append)
(3 markdown-markup-properties prepend))
(markdown--match-highlighting
(3 markdown-markup-properties)
(4 'markdown-highlighting-face)
(5 markdown-markup-properties))
("[^ \n ][ ]*\\( \\)\n" 1 markdown-line-break-properties prepend)
(markdown-match-escape
(1 markdown-markup-properties prepend))
(markdown-fontify-sub-superscripts)
(markdown-match-inline-attributes
(0 markdown-markup-properties prepend))
(markdown-match-leanpub-sections
(0 markdown-markup-properties))
(markdown-fontify-blockquotes))
Documentation
Syntax highlighting for Markdown files.
Source Code
;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defvar markdown-mode-font-lock-keywords
`((markdown-match-yaml-metadata-begin . ((1 'markdown-markup-face)))
(markdown-match-yaml-metadata-end . ((1 'markdown-markup-face)))
(markdown-match-yaml-metadata-key . ((1 'markdown-metadata-key-face)
(2 'markdown-markup-face)
(3 'markdown-metadata-value-face)))
(markdown-match-gfm-open-code-blocks . ((1 markdown-markup-properties)
(2 markdown-markup-properties nil t)
(3 markdown-language-keyword-properties nil t)
(4 markdown-language-info-properties nil t)
(5 markdown-markup-properties nil t)))
(markdown-match-gfm-close-code-blocks . ((0 markdown-markup-properties)))
(markdown-fontify-gfm-code-blocks)
(markdown-fontify-tables)
(markdown-match-fenced-start-code-block . ((1 markdown-markup-properties)
(2 markdown-markup-properties nil t)
(3 markdown-language-keyword-properties nil t)
(4 markdown-language-info-properties nil t)
(5 markdown-markup-properties nil t)))
(markdown-match-fenced-end-code-block . ((0 markdown-markup-properties)))
(markdown-fontify-fenced-code-blocks)
(markdown-match-pre-blocks . ((0 'markdown-pre-face)))
(markdown-fontify-headings)
(markdown-match-declarative-metadata . ((1 'markdown-metadata-key-face)
(2 'markdown-markup-face)
(3 'markdown-metadata-value-face)))
(markdown-match-pandoc-metadata . ((1 'markdown-markup-face)
(2 'markdown-markup-face)
(3 'markdown-metadata-value-face)))
(markdown-fontify-hrs)
(,markdown-regex-strike-through . ((3 markdown-markup-properties)
(4 'markdown-strike-through-face)
(5 markdown-markup-properties)))
(markdown-match-code . ((1 markdown-markup-properties prepend)
(2 'markdown-inline-code-face prepend)
(3 markdown-markup-properties prepend)))
(,markdown-regex-kbd . ((1 markdown-markup-properties)
(2 'markdown-inline-code-face)
(3 markdown-markup-properties)))
(markdown-fontify-angle-uris)
(,markdown-regex-email . 'markdown-plain-url-face)
(markdown-match-html-tag . ((1 'markdown-html-tag-delimiter-face t)
(2 'markdown-html-tag-name-face t)
(3 'markdown-html-tag-delimiter-face t)
;; Anchored matcher for HTML tag attributes
(,markdown-regex-html-attr
;; Before searching, move past tag
;; name; set limit at tag close.
(progn
(goto-char (match-end 2)) (match-end 3))
nil
. ((1 'markdown-html-attr-name-face)
(3 'markdown-html-tag-delimiter-face nil t)
(4 'markdown-html-attr-value-face nil t)))))
(,markdown-regex-html-entity . 'markdown-html-entity-face)
(markdown-fontify-list-items)
(,markdown-regex-footnote . ((1 markdown-markup-properties) ; [^
(2 (markdown--footnote-marker-properties)) ; label
(3 markdown-markup-properties))) ; ]
(,markdown-regex-pandoc-inline-footnote . ((1 markdown-markup-properties) ; ^
(2 markdown-markup-properties) ; [
(3 (markdown--pandoc-inline-footnote-properties)) ; text
(4 markdown-markup-properties))) ; ]
(markdown-match-includes . ((1 markdown-markup-properties)
(2 markdown-markup-properties nil t)
(3 markdown-include-title-properties nil t)
(4 markdown-markup-properties nil t)
(5 markdown-markup-properties)
(6 'markdown-url-face)
(7 markdown-markup-properties)))
(markdown-fontify-inline-links)
(markdown-fontify-reference-links)
(markdown-fontify-wiki-links)
(,markdown-regex-reference-definition . ((1 'markdown-markup-face) ; [
(2 'markdown-reference-face) ; label
(3 'markdown-markup-face) ; ]
(4 'markdown-markup-face) ; :
(5 'markdown-url-face) ; url
(6 'markdown-link-title-face))) ; "title" (optional)
(markdown-fontify-plain-uris)
;; Math mode $..$
(markdown-match-math-single . ((1 'markdown-markup-face prepend)
(2 'markdown-math-face append)
(3 'markdown-markup-face prepend)))
;; Math mode $$..$$
(markdown-match-math-double . ((1 'markdown-markup-face prepend)
(2 'markdown-math-face append)
(3 'markdown-markup-face prepend)))
;; Math mode \[..\] and \\[..\\]
(markdown-match-math-display . ((1 'markdown-markup-face prepend)
(3 'markdown-math-face append)
(4 'markdown-markup-face prepend)))
(markdown-match-bold . ((1 markdown-markup-properties prepend)
(2 'markdown-bold-face append)
(3 markdown-markup-properties prepend)))
(markdown-match-italic . ((1 markdown-markup-properties prepend)
(2 'markdown-italic-face append)
(3 markdown-markup-properties prepend)))
(markdown--match-highlighting . ((3 markdown-markup-properties)
(4 'markdown-highlighting-face)
(5 markdown-markup-properties)))
(,markdown-regex-line-break . (1 markdown-line-break-properties prepend))
(markdown-match-escape . ((1 markdown-markup-properties prepend)))
(markdown-fontify-sub-superscripts)
(markdown-match-inline-attributes . ((0 markdown-markup-properties prepend)))
(markdown-match-leanpub-sections . ((0 markdown-markup-properties)))
(markdown-fontify-blockquotes))
"Syntax highlighting for Markdown files.")