diff options
Diffstat (limited to 'runtime/queries')
-rw-r--r-- | runtime/queries/markdown/highlights.scm | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/runtime/queries/markdown/highlights.scm b/runtime/queries/markdown/highlights.scm index f12254e9..ed22b806 100644 --- a/runtime/queries/markdown/highlights.scm +++ b/runtime/queries/markdown/highlights.scm @@ -1,7 +1,12 @@ -[ - (atx_heading) - (setext_heading) -] @markup.heading +(setext_heading (heading_content) @markup.heading.1 (setext_h1_underline) @markup.heading.marker) +(setext_heading (heading_content) @markup.heading.2 (setext_h2_underline) @markup.heading.marker) + +(atx_heading (atx_h1_marker) @markup.heading.marker (heading_content) @markup.heading.1) +(atx_heading (atx_h2_marker) @markup.heading.marker (heading_content) @markup.heading.2) +(atx_heading (atx_h3_marker) @markup.heading.marker (heading_content) @markup.heading.3) +(atx_heading (atx_h4_marker) @markup.heading.marker (heading_content) @markup.heading.4) +(atx_heading (atx_h5_marker) @markup.heading.marker (heading_content) @markup.heading.5) +(atx_heading (atx_h6_marker) @markup.heading.marker (heading_content) @markup.heading.6) (code_fence_content) @none |