mirror of
https://github.com/wahyd4/docsify.git
synced 2026-08-13 23:43:12 +10:00
docs(README): add search
This commit is contained in:
+1
-1
@@ -43,7 +43,7 @@ export function init () {
|
||||
}
|
||||
renderer.link = function (href, title, text) {
|
||||
if (!/:/.test(href)) {
|
||||
href = `#/${href}`.replace(/\/\//g, '/')
|
||||
href = `#/${href}`.replace(/\/+/g, '/')
|
||||
}
|
||||
|
||||
return `<a href="${href}" title="${title || ''}">${text}</a>`
|
||||
|
||||
Reference in New Issue
Block a user