diff --git a/src/core/render/compiler.js b/src/core/render/compiler.js index 5f4ad0585..a13faa663 100644 --- a/src/core/render/compiler.js +++ b/src/core/render/compiler.js @@ -73,7 +73,10 @@ renderer.link = function (href, title, text) { } else { blank = ' target="_blank"' } - return `${text}` + if (title) { + title = ` title="${title}"` + } + return `${text}` } renderer.paragraph = function (text) { if (/^!>/.test(text)) {