summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMDeiml <matthias@deiml.net>2022-02-09 09:45:20 +0100
committerKiyan <yazdani.kiyan@protonmail.com>2022-02-09 21:25:31 +0100
commit7e3b06df719d6a34d66e6e43c2bc095b61031d25 (patch)
treebf9b37364f5ac5b84c4aa680ce58a6ba907f3bb4
parent1b74deaa322a2257f50daeb65093b9a0f41f2fd6 (diff)
Only allow yaml at start of file
-rw-r--r--queries/markdown/injections.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/queries/markdown/injections.scm b/queries/markdown/injections.scm
index c8dfb566..6fa047ac 100644
--- a/queries/markdown/injections.scm
+++ b/queries/markdown/injections.scm
@@ -6,4 +6,4 @@
((html_block) @html)
((html_tag) @html)
-((thematic_break) (_) @yaml @combined (thematic_break))
+(document . (thematic_break) (_) @yaml @combined (thematic_break))