Fixed cover page style
This commit is contained in:
parent
4f5a150c17
commit
c93ba1ea16
5 changed files with 21 additions and 11 deletions
|
|
@ -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>`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue