From adcb73b1291024a75a76873c958c192e896749de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Genov=C3=A9s?= Date: Thu, 11 Jul 2019 21:22:46 +0200 Subject: [PATCH] fix small regex errors in header queries --- uberwriter/markup_regex.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uberwriter/markup_regex.py b/uberwriter/markup_regex.py index 25314a9..f9cb622 100644 --- a/uberwriter/markup_regex.py +++ b/uberwriter/markup_regex.py @@ -21,9 +21,9 @@ ORDERED_LIST = re.compile( BLOCK_QUOTE = re.compile( r"^ {0,3}(?:> ?)+(?P.+)", re.M) HEADER = re.compile( - r"^ {0,3}(?P#{1,6}) (?P[^\n]+)", re.M) + r"^ {0,3}(?P#{1,6})(?P[^\n]+)", re.M) HEADER_UNDER = re.compile( - r"(?:^\n*|\n\n)(?P[^\s].+)\n {0,3}[=\-]+(?:\s+?\n|$)") + r"(?:^\n*|\n\n)(?P[^\s].+)\n[=\-]+(?: +?\n|$)") CODE_BLOCK = re.compile( r"(?:^|\n) {0,3}(?P([`~]{3})(?P.+?) {0,3}\2)(?:\s+?\n|$)", re.S) TABLE = re.compile(