Skip to content

fix(by copilot): stop escaping HTML in JSDoc strings#1284

Open
KnightNiwrem wants to merge 1 commit intomainfrom
fix/1027-broken-ref-link
Open

fix(by copilot): stop escaping HTML in JSDoc strings#1284
KnightNiwrem wants to merge 1 commit intomainfrom
fix/1027-broken-ref-link

Conversation

@KnightNiwrem
Copy link
Copy Markdown
Contributor

LLM disclosure
Harness: Github Copilot CLI
Model: Claude Opus 4.6 (reasoning: high)

Remove the while loop in P.tsx that escaped <...> patterns to <...> in JSDoc text. This was breaking intentional HTML tags (like links) in JSDoc strings, causing broken links in the API reference.

Fixes #1027

Remove the while loop in P.tsx that escaped <...> patterns to &lt;...&gt;
in JSDoc text. This was breaking intentional HTML tags (like links) in
JSDoc strings, causing broken links in the API reference.

Fixes #1027

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 5, 2026 13:12
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the API reference generator’s paragraph renderer to stop escaping <...> patterns in JSDoc text so that intentional inline HTML (e.g. <a> links) survives into the generated reference pages, addressing broken links in the core API reference (Fixes #1027).

Changes:

  • Removed the loop in P.tsx that escaped angle-bracket patterns outside code fences.
  • Kept the existing code-fence tweak ( ```ts ```ts:no-line-numbers) and {@link ...} rewriting intact.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Member

@KnorpelSenf KnorpelSenf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This breaks the build for obvious reasons

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.

Broken link in core API reference

3 participants