mirror of
https://github.com/wahyd4/docsify.git
synced 2026-08-16 16:56:16 +10:00
fix(compiler): link
This commit is contained in:
@@ -73,7 +73,10 @@ renderer.link = function (href, title, text) {
|
||||
} else {
|
||||
blank = ' target="_blank"'
|
||||
}
|
||||
return `<a href="${href}" title="${title || text}"${blank}>${text}</a>`
|
||||
if (title) {
|
||||
title = ` title="${title}"`
|
||||
}
|
||||
return `<a href="${href}"${title}${blank}>${text}</a>`
|
||||
}
|
||||
renderer.paragraph = function (text) {
|
||||
if (/^!>/.test(text)) {
|
||||
|
||||
Reference in New Issue
Block a user