on master help sign in
Improve markdown highlights and add latex injection (#6100)
0cbb61cMatthias Deiml
languages.toml+2−2
@@ -1026,7 +1026,7 @@ indent = { tab-width = 2, unit = " " }
1026
1026
1027[[grammar]]
1027[[grammar]]
1028name = "markdown"
1028name = "markdown"
1029−source = { git = "https://github.com/MDeiml/tree-sitter-markdown", rev = "a7de4be29783a6e25f3240c90afea52f2417faa3", subpath = "tree-sitter-markdown" }
1029+source = { git = "https://github.com/MDeiml/tree-sitter-markdown", rev = "7e7aa9a25ca9729db9fe22912f8f47bdb403a979", subpath = "tree-sitter-markdown" }
1030
1030
1031[[language]]
1031[[language]]
1032name = "markdown.inline"
1032name = "markdown.inline"
@@ -1038,7 +1038,7 @@ grammar = "markdown_inline"
1038
1038
1039[[grammar]]
1039[[grammar]]
1040name = "markdown_inline"
1040name = "markdown_inline"
1041−source = { git = "https://github.com/MDeiml/tree-sitter-markdown", rev = "a7de4be29783a6e25f3240c90afea52f2417faa3", subpath = "tree-sitter-markdown-inline" }
1041+source = { git = "https://github.com/MDeiml/tree-sitter-markdown", rev = "7e7aa9a25ca9729db9fe22912f8f47bdb403a979", subpath = "tree-sitter-markdown-inline" }
1042
1042
1043[[language]]
1043[[language]]
1044name = "dart"
1044name = "dart"
runtime/queries/markdown.inline/injections.scm+2
@@ -1,2 +1,4 @@
1
1
2((html_tag) @injection.content (#set! injection.language "html") (#set! injection.include-unnamed-children))
2((html_tag) @injection.content (#set! injection.language "html") (#set! injection.include-unnamed-children))
3+
4+((latex_block) @injection.content (#set! injection.language "latex") (#set! injection.include-unnamed-children))
runtime/queries/markdown/highlights.scm+7−1
@@ -39,7 +39,7 @@
39 (list_marker_parenthesis)
39 (list_marker_parenthesis)
40] @markup.list.numbered
40] @markup.list.numbered
41
41
42−(thematic_break) @punctuation.delimiter
42+(thematic_break) @punctuation.special
43
43
44[
44[
45 (block_continuation)
45 (block_continuation)
@@ -51,3 +51,9 @@
51] @string.escape
51] @string.escape
52
52
53(block_quote) @markup.quote
53(block_quote) @markup.quote
54+
55+(pipe_table_row
56+ "|" @punctuation.special)
57+(pipe_table_header
58+ "|" @punctuation.special)
59+(pipe_table_delimiter_row) @punctuation.special