Add YAML/TOML frontmatter injections for markdown (#21503)
Closes #7938. Adds front-matter injections for TOML/YAML in markdown. - See: https://github.com/tree-sitter-grammars/tree-sitter-markdown/blob/split_parser/tree-sitter-markdown/queries/injections.scm. Co-authored-by: Peter Tripp <peter@zed.dev>
This commit is contained in:
parent
d6e11c58db
commit
feb2d85a13
1 changed files with 4 additions and 0 deletions
|
@ -8,3 +8,7 @@
|
||||||
|
|
||||||
((html_block) @content
|
((html_block) @content
|
||||||
(#set! "language" "html"))
|
(#set! "language" "html"))
|
||||||
|
|
||||||
|
((minus_metadata) @content (#set! "language" "yaml"))
|
||||||
|
|
||||||
|
((plus_metadata) @content (#set! "language" "toml"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue