Skip to content

fix(web): render GitHub alert blocks as callouts on the changelog page - #1444

Merged
scttbnsn merged 1 commit into
dev/v1.8from
fix/v1.8-web-changelog-alerts
Oct 21, 2026
Merged

scttbnsn merged 1 commit into
dev/v1.8from
fix/v1.8-web-changelog-alerts

Conversation

@scttbnsn

@scttbnsn scttbnsn commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

The website changelog page rendered GitHub alert blocks (> [!WARNING] and friends) as literal text. Adds a remark plugin that turns them into fumadocs callouts on the docs site. The root CHANGELOG and GitHub release notes are unchanged.

Two known edges stay as follow-ups: a marker followed by bold text on the same line converts where GitHub wouldn't, and an escaped \[!NOTE] still converts.

✨ Added GitHub alert rendering for changelog MDX.

  • Convert supported alert blockquotes to Fumadocs Callout elements.

  • Map alert markers to callout types and titles.

  • Preserve nested content and later paragraphs.

  • Register remarkGithubAlerts in the MDX configuration.

  • Add coverage for mappings, nested lists, unchanged blockquotes, disabled behavior, and configuration registration.

  • Do not merge before v1.8.0 GA is promoted from rc.3.

  • Fix same-line bold text handling to match GitHub alert behavior.

  • Prevent escaped \[!NOTE] from converting.

@vercel

vercel Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
drydock-website Ready Ready Preview Oct 21, 2026 6:46pm UTC
drydockdemo-website Ready Ready Preview Oct 21, 2026 6:46pm UTC

@coderabbitai

coderabbitai Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 12 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository: CodesWhat/drydock/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 49724824-dad9-4d7d-9db6-119ef1ff24db
📥 Commits

Reviewing files that changed from the base of the PR and between a96d833 and c560449.

⛔ Files ignored due to path filters: 1
  • CHANGELOG.md is excluded by !CHANGELOG.md
📒 Files selected for processing: 3
  • apps/web/scripts/remark-github-alerts.test.mjs
  • apps/web/source.config.ts
  • apps/web/src/lib/remark-github-alerts.mjs

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: CodesWhat/drydock/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 86f4665b-3e01-4b22-bbf0-bfeb16a86e5e
📥 Commits

Reviewing files that changed from the base of the PR and between 87d20e9 and a96d833.

⛔ Files ignored due to path filters: 1
  • CHANGELOG.md is excluded by !CHANGELOG.md
📒 Files selected for processing: 3
  • apps/web/scripts/remark-github-alerts.test.mjs
  • apps/web/source.config.ts
  • apps/web/src/lib/remark-github-alerts.mjs

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review.

📝 Walkthrough

The change adds a remark plugin that converts supported GitHub alert blockquotes into Callout elements. It maps alert markers to callout types and titles, preserves remaining content, and visits nested nodes. The MDX remark pipeline registers the plugin. Tests cover alert kinds, content handling, ordinary and unknown blockquotes, nested alerts, behavior without the plugin, and pipeline registration.

Priority: ⚪ Pending latest changes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to a96d8

No verified rendering issue blocks this change. Honor the stated hold until v1.8.0 GA is promoted before merging.

Pre-merge checks: Passed 2
Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches: 💡 1
🛠️ Fix failing CI checks: 💡
  • Commit to this branch
  • Create a new PR
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Oct 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@scttbnsn
scttbnsn marked this pull request as ready for review October 21, 2026 18:38

This branch was successfully deployed

2 active deployments
Preview – drydockdemo-website — c560449a Deployed Oct 21, 2026 by vercel[bot]
Preview – drydock-website — c560449a Deployed Oct 21, 2026 by vercel[bot]
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.

1 participant