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: /^\\([\\`*{}\[\]()#+\-.!_])/,
|
escape: /^\\([\\`*{}\[\]()#+\-.!_])/,
|
||||||
autolink: /^<([^ >]+(@|:\/)[^ >]+)>/,
|
autolink: /^<([^ >]+(@|:\/)[^ >]+)>/,
|
||||||
tag: /^<!--[^\0]*?-->|^<\/?\w+[^>]*>/,
|
tag: /^<!--[^\0]*?-->|^<\/?\w+[^>]*>/,
|
||||||
link: /^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]\s*\(([^\)]*)\)/,
|
link: /^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]\(([^\)]*)\)/,
|
||||||
reflink: /^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]\s*\[([^\]]*)\]/,
|
reflink: /^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]\s*\[([^\]]*)\]/,
|
||||||
nolink: /^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,
|
nolink: /^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,
|
||||||
strong: /^__([^\0]+?)__(?!_)|^\*\*([^\0]+?)\*\*(?!\*)/,
|
strong: /^__([^\0]+?)__(?!_)|^\*\*([^\0]+?)\*\*(?!\*)/,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user