Lazy match to fix #241
This commit is contained in:
parent
3f36078eb5
commit
b0b9630057
|
@ -34,9 +34,9 @@ def load(file):
|
||||||
markson = open(file).read()
|
markson = open(file).read()
|
||||||
markson = markson.replace('\r', '')
|
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'])
|
_html = markdown.markdown(_markdown, extensions=['fenced_code'])
|
||||||
|
|
||||||
# Scan for the Title in the Markdown file, this is always assumed
|
# Scan for the Title in the Markdown file, this is always assumed
|
||||||
|
|
Loading…
Reference in New Issue