|
|
@ -101,6 +101,8 @@ module.exports = function linkify(state) { |
|
|
|
token = new state.Token('link_open', 'a', 1); |
|
|
|
token.attrs = [ [ 'href', fullUrl ] ]; |
|
|
|
token.level = level++; |
|
|
|
token.markup = 'linkify'; |
|
|
|
token.info = 'auto'; |
|
|
|
nodes.push(token); |
|
|
|
|
|
|
|
token = new state.Token('text', '', 0); |
|
|
@ -110,6 +112,8 @@ module.exports = function linkify(state) { |
|
|
|
|
|
|
|
token = new state.Token('link_close', 'a', -1); |
|
|
|
token.level = --level; |
|
|
|
token.markup = 'linkify'; |
|
|
|
token.info = 'auto'; |
|
|
|
nodes.push(token); |
|
|
|
|
|
|
|
lastPos = links[ln].lastIndex; |
|
|
|