Skip to content

fix: release note rendering issue#15

Merged
sirily11 merged 1 commit into
mainfrom
acp-fix
May 15, 2026
Merged

fix: release note rendering issue#15
sirily11 merged 1 commit into
mainfrom
acp-fix

Conversation

@sirily11

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings May 15, 2026 10:27
@vercel

vercel Bot commented May 15, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
rxcode Ready Ready Preview, Comment May 15, 2026 10:28am

Request Review

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Replaces a hand-rolled markdown→HTML converter (and its dangerouslySetInnerHTML rendering) for GitHub release notes with react-markdown, fixing rendering issues for unsupported markdown constructs.

Changes:

  • Adds react-markdown@^10.1.0 dependency (and its transitive deps) to the website package.
  • Removes the custom escapeHtml / inlineMarkdownToHtml / releaseMarkdownToHtml helpers and surfaces the raw markdown via a new releaseNotesMarkdown field on AppReleaseNote.
  • Updates the release page to render notes through <ReactMarkdown> with a custom <a> renderer that opens links in a new tab.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
website/package.json Adds react-markdown dependency.
website/bun.lock Locks react-markdown and its transitive dependencies.
website/app/lib/release.ts Drops custom markdown→HTML conversion; exposes raw markdown via releaseNotesMarkdown and stops populating releaseNotesHtml for GitHub releases.
website/app/release/page.tsx Renders release notes using ReactMarkdown with a custom anchor component instead of dangerouslySetInnerHTML.

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

Comment on lines +222 to +232
<ReactMarkdown
components={{
a: ({ href, children }) => (
<a href={href} target="_blank" rel="noreferrer">
{children}
</a>
),
}}
>
{release.releaseNotesMarkdown}
</ReactMarkdown>
Comment on lines +235 to +236
releaseNotesHtml: null,
releaseNotesMarkdown: release.body?.trim() || null,
@sirily11 sirily11 merged commit 605c1a6 into main May 15, 2026
10 checks passed
@sirily11 sirily11 deleted the acp-fix branch May 15, 2026 10:30
@sirily11

Copy link
Copy Markdown
Contributor Author

🎉 This PR is included in version 1.3.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants