From 7e3b06df719d6a34d66e6e43c2bc095b61031d25 Mon Sep 17 00:00:00 2001 From: MDeiml Date: Wed, 9 Feb 2022 09:45:20 +0100 Subject: [PATCH] Only allow yaml at start of file --- queries/markdown/injections.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/queries/markdown/injections.scm b/queries/markdown/injections.scm index c8dfb5665..6fa047ac9 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))