Yaml metadata, fix regex (#1287)

This commit is contained in:
Tinmarino
2023-03-15 00:54:49 -03:00
parent 2f1f497f88
commit 7f1357472d
3 changed files with 8 additions and 16 deletions
+1 -1
View File
@@ -2954,7 +2954,7 @@ Where:
List of (start, end) regex region delimiters to define the YAML header
More information in #1287 and https://pandoc.org/MANUAL.html#extension-yaml_metadata_block
Default: [['^---$', '^---$'], ['^\.\.\.$', '^\.\.\.$']]
Default: [['^---$', '^\%(---\|\.\.\.$']]
or similar with stricter anchors