Fix handling of mixed subrules and definitions in quote

This commit is contained in:
RunasSudo 2019-12-15 14:09:19 +11:00
parent d4fa0ae689
commit 1cd9201d59
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -106,6 +106,8 @@ class SubrulesItem(mistletoe.block_token.BlockToken):
if not match.group(1) and not match.group(2):
# Neither an indent nor a label
return False
if Definition.pattern.match(line):
return False
return True
@classmethod