links
This commit is contained in:
parent
396880e51a
commit
f6c0d96525
@ -185,8 +185,9 @@ var inline = {
|
||||
escape: /^\\([\\`*{}\[\]()#+\-.!_])/,
|
||||
autolink: /^<([^ >]+(@|:\/)[^ >]+)>/,
|
||||
tag: /^<!--[^\0]*?-->|^<[^\n>]+>/,
|
||||
link: /^!?\[([^\]]+)\]\s*\(([^\)]*)\)/,
|
||||
reflink: /^!?\[([^\]]+)\]\s*\[([^\]]*)\]/,
|
||||
link: /^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]\s*\(([^\)]*)\)/,
|
||||
reflink: /^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]\s*\[([^\]]*)\]/,
|
||||
nolink: /^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,
|
||||
strong: /^__([^\0]+?)__(?!_)|^\*\*([^\0]+?)\*\*(?!\*)/,
|
||||
em: /^_([^_]+)_|^\*([^*]+)\*/,
|
||||
code: /^`([^`]+)`|^``([^\0]+?)``/
|
||||
@ -262,7 +263,7 @@ inline.lexer = function(str) {
|
||||
break;
|
||||
case 'link':
|
||||
case 'reflink':
|
||||
if (key === 'reflink') {
|
||||
if (key !== 'link') {
|
||||
link = cap[2]
|
||||
? links[cap[2]]
|
||||
: links[cap[1]];
|
||||
|
Loading…
x
Reference in New Issue
Block a user