|
|
@ -143,7 +143,8 @@ rules.paragraph_close = function (tokens, idx /*, options, env */) { |
|
|
|
|
|
|
|
rules.link_open = function (tokens, idx /*, options, env */) { |
|
|
|
var title = tokens[idx].title ? (' title="' + escapeHtml(replaceEntities(tokens[idx].title)) + '"') : ''; |
|
|
|
return '<a href="' + escapeHtml(tokens[idx].href) + '"' + title + '>'; |
|
|
|
var target = tokens[idx].target ? (' target="' + escapeHtml(tokens[idx].target) + '"') : ''; |
|
|
|
return '<a href="' + escapeHtml(tokens[idx].href) + '"' + title + target + '>'; |
|
|
|
}; |
|
|
|
rules.link_close = function (/* tokens, idx, options, env */) { |
|
|
|
return '</a>'; |
|
|
|