markdown: support custom header color

This commit is contained in:
d1y 2025-05-27 09:46:55 +08:00
parent 4a577fff4a
commit dbdfd18a9b

View file

@ -11,6 +11,32 @@
(list_marker_parenthesis)
] @punctuation.list_marker
(setext_heading
(paragraph) @markup.heading.1
(setext_h1_underline) @markup.heading.1)
(setext_heading
(paragraph) @markup.heading.2
(setext_h2_underline) @markup.heading.2)
(atx_heading
(atx_h1_marker)) @markup.heading.1
(atx_heading
(atx_h2_marker)) @markup.heading.2
(atx_heading
(atx_h3_marker)) @markup.heading.3
(atx_heading
(atx_h4_marker)) @markup.heading.4
(atx_heading
(atx_h5_marker)) @markup.heading.5
(atx_heading
(atx_h6_marker)) @markup.heading.6
(fenced_code_block
(info_string
(language) @text.literal))