fix top/bottom rules

ui^2
Manuel Genovés 2020-01-25 01:41:36 +01:00
parent 41378d55e1
commit 68bcc1206b
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ LINK_ALT = re.compile(
IMAGE = re.compile(
r"!\[(?P<text>.*)\]\((?P<url>.+?)(?: \"(?P<title>.+)\")?\)")
HORIZONTAL_RULE = re.compile(
r"(?:\n\n)(?P<symbols> {0,3}[*\-_]{3,} *)(?:\n\n+)")
r"(?:^|\n{2,})(?P<symbols> {0,3}[*\-_]{3,} *)(?:\n{2,}|$)")
LIST = re.compile(
r"(?:^|\n)(?P<content>(?P<indent>(?:\t| {4})*)[\-*+]( +)(?P<text>.+(?:\n+ \2.+)*))")
ORDERED_LIST = re.compile(