Skip to content

fix(typedoc): add spaces in generics to prevent markdown HTML parsing#113

Open
moshams272 wants to merge 1 commit into
webpack:mainfrom
moshams272:fix/markdown-html-escaping
Open

fix(typedoc): add spaces in generics to prevent markdown HTML parsing#113
moshams272 wants to merge 1 commit into
webpack:mainfrom
moshams272:fix/markdown-html-escaping

Conversation

@moshams272
Copy link
Copy Markdown
Contributor

@moshams272 moshams272 commented May 30, 2026

Added spaces inside angle brackets for generic types (e.g., < Type >), and the doc-kit will remove them. This standard workaround prevents markdown parsers (remark from doc-kit) from falsely interpreting these types as raw HTML tags and stripping them from the AST.

Before:
Screenshot from 2026-05-30 15-34-09

After:
Screenshot from 2026-05-30 15-36-15

Added spaces inside angle brackets for generic types (e.g., `< Type >`).
This standard workaround prevents markdown parsers (remark from doc-kit) from falsely interpreting these types as raw HTML tags and stripping them from the AST.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 30, 2026

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

Project Deployment Actions Updated (UTC)
webpack-doc-kit Ready Ready Preview, Comment May 30, 2026 12:41pm

Request Review

@avivkeller
Copy link
Copy Markdown
Member

is this blocked by nodejs/doc-kit#814?

@moshams272
Copy link
Copy Markdown
Contributor Author

moshams272 commented May 30, 2026

This PR result is Readonly< object > without linking as node.js/doc-kit ignore it, and with the PR in node.js/doc-kit it will not ignore it and will show links without any spaces as it tirm them, then the result will be the second image in the description of this PR

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.

2 participants