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(