|
@ -15,9 +15,9 @@ module.exports = function link(state, silent) { |
|
|
pos, |
|
|
pos, |
|
|
res, |
|
|
res, |
|
|
ref, |
|
|
ref, |
|
|
title, |
|
|
|
|
|
token, |
|
|
token, |
|
|
href = '', |
|
|
href = '', |
|
|
|
|
|
title = '', |
|
|
oldPos = state.pos, |
|
|
oldPos = state.pos, |
|
|
max = state.posMax, |
|
|
max = state.posMax, |
|
|
start = state.pos, |
|
|
start = state.pos, |
|
@ -60,7 +60,6 @@ module.exports = function link(state, silent) { |
|
|
} else { |
|
|
} else { |
|
|
href = ''; |
|
|
href = ''; |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// [link]( <href> "title" )
|
|
|
// [link]( <href> "title" )
|
|
|
// ^^ skipping these spaces
|
|
|
// ^^ skipping these spaces
|
|
@ -83,8 +82,7 @@ module.exports = function link(state, silent) { |
|
|
code = state.src.charCodeAt(pos); |
|
|
code = state.src.charCodeAt(pos); |
|
|
if (!isSpace(code) && code !== 0x0A) { break; } |
|
|
if (!isSpace(code) && code !== 0x0A) { break; } |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} |
|
|
title = ''; |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (pos >= max || state.src.charCodeAt(pos) !== 0x29/* ) */) { |
|
|
if (pos >= max || state.src.charCodeAt(pos) !== 0x29/* ) */) { |
|
|