Impove text rendering in bullets

github/fork/sternenseemann/patch-1
Thomas Lavend'Homme 2019-12-15 12:14:08 -05:00
parent 7606a55389
commit 6edf041169
No known key found for this signature in database
GPG Key ID: CCA8234E45728B5C
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(