You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
... the problem doesn't occur with the default MkDocs template
... the problem is not in any of my customizations (CSS, JS, template)
... the documentation does not mention anything about my problem
... there are no open or closed issues that are related to my problem
Description
When perform a search query with search.highlight enabled, code blocks may get interpreted as JavaScript functions, causing the code block to partially render.
Steps to reproduce the bug
Create a page that contains a code block and a <script name> section:
Code block testing
This is a <script name> testing
Can anyone read me?
Do a search for "anyone" or anything else on the page, and when it displays, the code block will be cut off.
mywebsite.com/test.html?h=testing
Expected output
Actual output
Package versions
Python 2.7.18
mkdocs, version 1.1.2 from /home/ec2-user/.local/lib/python3.7/site-packages/mkdocs (Python 3.7)
Version: 6.1.0+insiders.1.7.0
The text was updated successfully, but these errors were encountered:
This issue is not a theme issue. Most likely it is a Markdown parsing issue. I can't tell what version of Python you are actually using as you've mentioned both 2.7.18 and Python 3.7.
Most likely, I'm guessing you are using Python Markdown 3.3+ which uses a new HTML parser. There are still some bugs being worked out of it as I think it was a bit prematurely released (there just weren't tests in place to catch the kind of edge cases that were discovered after release). You most likely won't have an issue if you use Python Markdown 3.2.2 IIRC.
I've found a bug and checked that ...
Description
When perform a search query with search.highlight enabled, code blocks may get interpreted as JavaScript functions, causing the code block to partially render.
Steps to reproduce the bug
Code block testing
mywebsite.com/test.html?h=testing
Expected output
Actual output
Package versions
Python 2.7.18
mkdocs, version 1.1.2 from /home/ec2-user/.local/lib/python3.7/site-packages/mkdocs (Python 3.7)
Version: 6.1.0+insiders.1.7.0
The text was updated successfully, but these errors were encountered: