We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50f5fc2 commit 9d3cc89Copy full SHA for 9d3cc89
src/plugins/search.js
@@ -76,6 +76,7 @@ const genIndex = function (path, content = '') {
76
slug = `#/${path}#${id}`.replace(/\/+/, '/')
77
INDEXS[slug] = { slug, title: text, body: '' }
78
} else {
79
+ if (!slug) return
80
// other html tag
81
if (!INDEXS[slug]) {
82
INDEXS[slug] = {}
0 commit comments