forked from Mirrors/apostrophe
Fixes #154
Fix regex for horizontal rules (yaml metadata delimiters should not be counted as rules)ui^2
parent
66af5f8217
commit
41378d55e1
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue