| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Someone is attempting to deploy a commit to the Docsify Team on Vercel. A member of the Team first needs to authorize it. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
HTML examples inside fenced or indented code blocks can disappear from the search index. genIndex() passes their already-lexed text through the Markdown parser again, which treats tags as HTML and removes them.
Keep code-token text as literal content when building the index. Other tokens retain their existing conversion, and search results still use the existing HTML escaping. Regression tests cover a code block immediately after a heading, after paragraph text, at the start of a page without a heading, and an indented code block. They also verify that the HTML example is displayed as text rather than inserted as an element.
To reproduce on a fresh page with the search plugin enabled:
Search for customwidget. Before this change there is no result; after it, the result includes the literal <customwidget /> example.
Related issue, if any:
Reproduced on develop at d823dbe51c1b2dea4c2091e2b952ded0d1e16616; no matching open fix found.
What kind of change does this PR introduce?
For any code change,
Does this PR introduce a breaking change?
Validation
Browser coverage: Chromium via Playwright. Firefox, WebKit, and the full unrelated E2E suite were not run locally.
Developed with assistance from OpenAI Codex; the regression and fix were validated locally.