Skip to content

Built-in search plugin doesn't properly filter script and style tags #5198

@veghdev

Description

@veghdev

Context

Based on this

mkdocs-jupyter integrates notebooks into mkdocs site. Its output, style etc are included in the search index, so the index file will be very large.

Bug description

"The cause seems to be that subsequent script/style/object tags are not skipped correctly due to mutations on the list of elements to be skipped. I'll issue a bugfix release when I get some time to work on it. Regardless, it's bad practice to include so many inline styles and scripts repeatedly in the page content – those inline scripts and styles should be moved to external resources." by @squidfunk

Related links

Reproduction

file:///home/david/Downloads/mkdocs-jupyter-search-main.zip
file:///home/david/Downloads/dump.html.zip

Steps to reproduce

make
make doc

Browser

Chrome

Before submitting

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue reports a bugresolvedIssue is resolved, yet unreleased if open

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions