Support TOML metadata in Markdown injections

Hugo, Zola, and likely other static site generators use `+++` for TOML,
not YAML.
This commit is contained in:
Andy Freeland 2022-07-22 20:04:16 -07:00 committed by Stephan Seitz
parent 2139fca70c
commit 0d0949683d

View file

@ -6,9 +6,7 @@
((html_block) @html)
([
(minus_metadata)
(plus_metadata)
] @yaml (#offset! @yaml 1 0 -1 0))
((minus_metadata) @yaml (#offset! @yaml 1 0 -1 0))
((plus_metadata) @toml (#offset! @toml 1 0 -1 0))
((inline) @markdown_inline (#exclude_children! @markdown_inline))