We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mkdocs
readthedocs
custom_dir
extra_javascript
extra_css
Search highlighting obtains the textContent of nodes, applies replacements, and then adds it back as innerHTML.
textContent
innerHTML
Consequently, text that looks like HTML tags can get mangled.
Instead, escapeHTML(value) should be used prior to applying the replacements in src/assets/javascripts/integrations/search/highlighter/index.ts.
escapeHTML(value)
src/assets/javascripts/integrations/search/highlighter/index.ts
Example link:
https://squidfunk.github.io/mkdocs-material/customization/?h=your#additional-variables
Note that the the <!-- Add your additional information here --> text disappears when we add the ?h=your parameter.
<!-- Add your additional information here -->
?h=your
n/a
mkdocs-material master as of 2021-07-28:
e29dfd0
The text was updated successfully, but these errors were encountered:
Good catch! Fixed in 6744eb6.
Sorry, something went wrong.
Released as part of 7.2.2.
No branches or pull requests
Contribution guidelines
I've found a bug and checked that ...
mkdocs
orreadthedocs
themescustom_dir
,extra_javascript
andextra_css
Description
Search highlighting obtains the
textContent
of nodes, applies replacements, and then adds it back asinnerHTML
.Consequently, text that looks like HTML tags can get mangled.
Instead,
escapeHTML(value)
should be used prior to applying the replacements insrc/assets/javascripts/integrations/search/highlighter/index.ts
.Example link:
https://squidfunk.github.io/mkdocs-material/customization/?h=your#additional-variables
Note that the the
<!-- Add your additional information here -->
text disappears when we add the?h=your
parameter.Expected behaviour
n/a
Actual behaviour
n/a
Steps to reproduce
n/a
Package versions
mkdocs-material master as of 2021-07-28:
e29dfd0
Configuration
n/a
System information
n/a
The text was updated successfully, but these errors were encountered: