Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Add YAML/TOML frontmatter injections for markdown (#21503)

uncenterfeb2d85a1352
diff --git a/crates/languages/src/markdown/injections.scm b/crates/languages/src/markdown/injections.scm
index 5972a43eb16..b2c35642e55 100644
--- a/crates/languages/src/markdown/injections.scm
+++ b/crates/languages/src/markdown/injections.scm
@@ -8,3 +8,7 @@
((html_block) @content
(#set! "language" "html"))
+
+((minus_metadata) @content (#set! "language" "yaml"))
+
+((plus_metadata) @content (#set! "language" "toml"))