pull/3440/head
zonemeen 2 years ago
parent d0cad4a2b0
commit 2c2631033b

@ -166,9 +166,7 @@ export async function localSearchPlugin(
for await (const section of sections) { for await (const section of sections) {
if (!section || !(section.text || section.titles)) break if (!section || !(section.text || section.titles)) break
let { anchor, text, titles } = section let { anchor, text, titles } = section
if (parentTitles.length) { titles = [...parentTitles, ...titles]
titles = [...parentTitles, ...titles]
}
const id = anchor ? [fileId, anchor].join('#') : fileId const id = anchor ? [fileId, anchor].join('#') : fileId
index.add({ index.add({
id, id,

Loading…
Cancel
Save