diff options
author | Alex | 2022-02-21 07:45:48 +0000 |
---|---|---|
committer | GitHub | 2022-02-21 07:45:48 +0000 |
commit | d5ba0b516263f08116c43eb0796b1027b094dabd (patch) | |
tree | 0965f9fdbf2c7da1d6217c154d364c7eaa210507 /runtime/queries | |
parent | 700058f433d0d12b30b968d50cd7f9b93f983107 (diff) |
Allow separate styles for markup headings (#1618)
* update markdown highlighting to use separate heading themes
* remove markdown theme scopes in ui
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 |