We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e928dd8 commit cfb6dddCopy full SHA for cfb6ddd
src/project/types/website/website-search.ts
@@ -291,6 +291,12 @@ export async function updateSearchIndex(
291
}
292
});
293
294
+ // Remove all page elements that should be excluded from the search index
295
+ const exclusions = doc.querySelectorAll(".quarto-exclude-from-search-index");
296
+ for (const exclusion of exclusions) {
297
+ exclusion._remove();
298
+ }
299
+
300
// We always take the first child of the main region (whether that is a p or section)
301
// and create an index entry for the page itself (with no hash). If there is other
302
// 'unsectioned' content on the page, we include that as well.
0 commit comments