Improve handling of bold italic

**_bolditalic_** and other mixed combinations now work.
github/fork/yochananmarqos/patch-1
Gonçalo Silva 2019-06-23 02:34:49 +01:00
parent 7ea8f67216
commit 859ad84524
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ ITALIC = re.compile(
BOLD = re.compile(
r"(\*\*|__)(?P<text>.+?)\1")
BOLD_ITALIC = re.compile(
r"(\*\*\*|___)(?P<text>.+?)\1")
r"((\*\*|__)([*_])|([*_])(\*\*|__))(?P<text>.+?)(?:\5\4|\3\2)")
STRIKETHROUGH = re.compile(
r"~~(?P<text>.+?)~~")
CODE = re.compile(