Compare commits

...

1 Commits

Author SHA1 Message Date
60d290e24f Allow metadata block in the middle of file 2019-04-18 20:58:35 +03:00

View File

@ -91,9 +91,14 @@ class MetaYamlPreprocessor(Preprocessor):
""" Parse Meta-Data and store in Markdown.Meta. """ """ Parse Meta-Data and store in Markdown.Meta. """
yaml_block = [] yaml_block = []
yaml_start_found = False
while lines:
line = lines.pop(0) line = lines.pop(0)
if line == "---": if line == "---":
yaml_start_found = True
break
if yaml_start_found == True:
while lines: while lines:
line = lines.pop(0) line = lines.pop(0)
if line in ("---", "..."): if line in ("---", "..."):