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:
uncenter 2024-12-06 12:34:15 -05:00 committed by GitHub
parent d6e11c58db
commit feb2d85a13
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"))