Markdown reader: Yaml block must start immediately after ---
.
If there's a blank line after `---`, we interpreted it as a horizontal rule.
This commit is contained in:
parent
a6aaff102e
commit
ab0ffe6549
1 changed files with 1 additions and 0 deletions
|
@ -227,6 +227,7 @@ yamlMetaBlock = try $ do
|
|||
pos <- getPosition
|
||||
string "---"
|
||||
blankline
|
||||
notFollowedBy blankline -- if --- is followed by a blank it's an HRULE
|
||||
rawYamlLines <- manyTill anyLine stopLine
|
||||
-- by including --- and ..., we allow yaml blocks with just comments:
|
||||
let rawYaml = unlines ("---" : (rawYamlLines ++ ["..."]))
|
||||
|
|
Loading…
Reference in a new issue