diff --git a/main.py b/main.py index f442afd..8a6676e 100644 --- a/main.py +++ b/main.py @@ -107,7 +107,8 @@ for item in items: lines[i + 1] = nextline content = '\n'.join(lines) - content = md(content, code_language_callback=code_parser).strip() + '\n' + content = md(content, code_language_callback=code_parser, + escape_misc=True).strip() + '\n' ref_regex = re.compile(r'\[ref](.+?)\[/ref]') refs = [] stuff = find_all_matches(ref_regex, content, 1)