don't allow [foo] (bar) to be treated as link
This commit is contained in:
parent
e482c752ad
commit
5d7522f902
@ -205,7 +205,7 @@ var inline = {
|
||||
escape: /^\\([\\`*{}\[\]()#+\-.!_])/,
|
||||
autolink: /^<([^ >]+(@|:\/)[^ >]+)>/,
|
||||
tag: /^<!--[^\0]*?-->|^<\/?\w+[^>]*>/,
|
||||
link: /^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]\s*\(([^\)]*)\)/,
|
||||
link: /^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]\(([^\)]*)\)/,
|
||||
reflink: /^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]\s*\[([^\]]*)\]/,
|
||||
nolink: /^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,
|
||||
strong: /^__([^\0]+?)__(?!_)|^\*\*([^\0]+?)\*\*(?!\*)/,
|
||||
|
Loading…
x
Reference in New Issue
Block a user