no val
This commit is contained in:
parent
6c6d91f24e
commit
0c32160f95
@ -247,8 +247,7 @@ inline.lexer = function(str) {
|
||||
, links = tokens.links
|
||||
, link = {}
|
||||
, text
|
||||
, href
|
||||
, val;
|
||||
, href;
|
||||
|
||||
var rules = inline
|
||||
, keys = inline.keys
|
||||
@ -299,9 +298,9 @@ inline.lexer = function(str) {
|
||||
if (key === 'reflink') {
|
||||
link = links[cap[2]];
|
||||
} else {
|
||||
val = cap[2].match(/^([^\s]+)\s*(.+)?/);
|
||||
link.href = val[1];
|
||||
link.title = val[2];
|
||||
text = cap[2].match(/^([^\s]+)\s*(.+)?/);
|
||||
link.href = text[1];
|
||||
link.title = text[2];
|
||||
}
|
||||
out += '<img src="'
|
||||
+ escape(link.href)
|
||||
|
Loading…
x
Reference in New Issue
Block a user