Lazy match to fix #241

This commit is contained in:
Phil Howard 2020-08-22 15:19:45 +01:00
parent 3f36078eb5
commit b0b9630057
1 changed files with 2 additions and 2 deletions

View File

@ -34,9 +34,9 @@ def load(file):
markson = open(file).read()
markson = markson.replace('\r', '')
_data = re.search(re.compile(r'<!--(JSON:|\n---\n)(.*)-->', re.DOTALL), markson)
_data = re.search(re.compile(r'<!--(JSON:|\n---\n)(.*?)-->', re.DOTALL), markson)
_markdown = re.sub(re.compile(r'<!--(JSON:|\n---\n)(.*)-->', re.DOTALL), '', markson)
_markdown = re.sub(re.compile(r'<!--(JSON:|\n---\n)(.*?)-->', re.DOTALL), '', markson)
_html = markdown.markdown(_markdown, extensions=['fenced_code'])
# Scan for the Title in the Markdown file, this is always assumed