Skip to content

fix: decode html entities before passing jsdoc to renderer#1768

Merged
Ocean-OS merged 2 commits intosveltejs:mainfrom
bsmithgall:html-decoding
Feb 13, 2026
Merged

fix: decode html entities before passing jsdoc to renderer#1768
Ocean-OS merged 2 commits intosveltejs:mainfrom
bsmithgall:html-decoding

Conversation

@bsmithgall
Copy link
Contributor

On the current doc website, HTML content described in JSDoc comments are not unescaped before being passed along to the markdown renderer. When Shiki extracts the JSDocs from the other repos, it escapes the HTML (e.g. < becomes &#x3C;). This is then forwarded along directly to the markdown renderer.

This change manually reverses this process for a handful of characters. See attached screenshots for a before and after.

Before:
before

After:
after

@vercel
Copy link

vercel bot commented Feb 3, 2026

@bsmithgall is attempting to deploy a commit to the Svelte Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Feb 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
svelte-dev Ready Ready Preview Feb 13, 2026 7:44pm

Request Review

@Ocean-OS
Copy link
Member

Thank you!

@Ocean-OS Ocean-OS merged commit 090f131 into sveltejs:main Feb 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bad escaping of examples in JSDoc

2 participants