Merge pull request #185 from lavendthomas/regexp-fix

Impove text rendering in bullets
github/fork/sternenseemann/patch-1
Wolf Vollprecht 2019-12-16 11:22:24 +01:00 committed by GitHub
commit 0bcb2f3984
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

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