Fixed cover page style

This commit is contained in:
qingwei.li
2016-12-23 00:24:24 +08:00
parent 4f5a150c17
commit c93ba1ea16
5 changed files with 21 additions and 11 deletions

View File

@@ -42,7 +42,7 @@ renderer.code = function (code, lang = '') {
}
renderer.link = function (href, title, text) {
if (OPTIONS.router && !/^(?:\w+:)?\/\/([^\s\.]+\.\S{2}|localhost[\:?\d]*)\S*$/.test(href)) {
href = !/^\/#/.test(href) ? `#${href}` : href
href = !/^\/#/.test(href) ? `#/${getRoute()}${href}` : href
}
return `<a href="${href}" title="${title || ''}">${text}</a>`