fix small regex errors in header queries

github/fork/yochananmarqos/patch-1
Manuel Genovés 2019-07-11 21:22:46 +02:00 committed by Gonçalo Silva
parent 0bdb9e54ec
commit adcb73b129
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ BLOCK_QUOTE = re.compile(
HEADER = re.compile(
r"^ {0,3}(?P<level>#{1,6})(?P<text>[^\n]+)", re.M)
HEADER_UNDER = re.compile(
r"(?:^\n*|\n\n)(?P<text>[^\s].+)\n {0,3}[=\-]+(?:\s+?\n|$)")
r"(?:^\n*|\n\n)(?P<text>[^\s].+)\n[=\-]+(?: +?\n|$)")
CODE_BLOCK = re.compile(
r"(?:^|\n) {0,3}(?P<block>([`~]{3})(?P<text>.+?) {0,3}\2)(?:\s+?\n|$)", re.S)
TABLE = re.compile(