fix math REGEX expression

github/fork/yochananmarqos/patch-1
Manuel Genovés 2019-07-08 21:48:01 +02:00 committed by Gonçalo Silva
parent cb3da0331e
commit c8ea808623
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ CODE_BLOCK = re.compile(
TABLE = re.compile(
r"^[\-+]{5,}\n(?P<text>.+?)\n[\-+]{5,}\n", re.S)
MATH = re.compile(
r"([$]{1,2})[^` ](?P<text>.+?)[^`\\ ]\1")
r"([$]{1,2})(?P<text>[^` ].+?[^`\\ ])\1")
FOOTNOTE_ID = re.compile(
r"[^\s]+\[\^(?P<id>(?P<text>[^\s]+))\]")
FOOTNOTE = re.compile(