Fix regex for horizontal rules
(yaml metadata delimiters should not be counted as rules)
ui^2
Manuel Genovés 2020-01-24 19:12:20 +01:00
parent 66af5f8217
commit 41378d55e1
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)(?P<symbols> {0,3}[*\-_]{3,} *)(?:\n+|$)")
r"(?:\n\n)(?P<symbols> {0,3}[*\-_]{3,} *)(?:\n\n+)")
LIST = re.compile(
r"(?:^|\n)(?P<content>(?P<indent>(?:\t| {4})*)[\-*+]( +)(?P<text>.+(?:\n+ \2.+)*))")
ORDERED_LIST = re.compile(