From b0b963005769ff28ce81310c306c5196f2d0a705 Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Sat, 22 Aug 2020 15:19:45 +0100 Subject: [PATCH] Lazy match to fix #241 --- markjaml.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/markjaml.py b/markjaml.py index 77bcf24..3129b6f 100644 --- a/markjaml.py +++ b/markjaml.py @@ -34,9 +34,9 @@ def load(file): markson = open(file).read() markson = markson.replace('\r', '') - _data = re.search(re.compile(r'', re.DOTALL), markson) + _data = re.search(re.compile(r'', re.DOTALL), markson) - _markdown = re.sub(re.compile(r'', re.DOTALL), '', markson) + _markdown = re.sub(re.compile(r'', re.DOTALL), '', markson) _html = markdown.markdown(_markdown, extensions=['fenced_code']) # Scan for the Title in the Markdown file, this is always assumed