Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix: docs home before/after grid renders as raw markdown after Astro 6.4 bump#224

Merged
twschiller merged 1 commit into
mainfrom
fix/docs-home-before-after-grid
Jun 9, 2026
Merged

Fix: docs home before/after grid renders as raw markdown after Astro 6.4 bump#224
twschiller merged 1 commit into
mainfrom
fix/docs-home-before-after-grid

Conversation

@twschiller

Copy link
Copy Markdown
Contributor

Summary

  • The before/after comparison on the docs home page was rendering as a literal | Before | After | text block with the images dropped underneath instead of side-by-side.
  • Root cause: Astro 6.4 (bumped in Chore: bump dev-deps (biome, eslint, typescript-eslint, astro) #202, 6.3.76.4.2) stopped parsing GFM table rows whose cells contain JSX expressions. The <Image> components still rendered, but the surrounding pipes were emitted as literal text inside a <p>.
  • Replaced the markdown table in docs/src/content/docs/index.mdx with a CSS-grid <div> of <figure> elements so the comparison renders again. index.mdx was the only docs page using a markdown table, so no other surface to fix.

Test plan

  • bun run build in docs/ succeeds
  • docs/dist/index.html contains the <figure> grid (not a <p> with literal pipes)
  • Visual check on bun run preview — Before and After screenshots render side-by-side with captions

🤖 Generated with Claude Code

…6.4 bump

Astro 6.4 (#202) stopped parsing GFM table rows whose cells contain JSX
expressions — the `<Image>` components rendered, but the surrounding pipes
emitted as literal text in a `<p>`. Replace the markdown table with a CSS
grid of `<figure>` elements so the before/after comparison renders again.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@vercel

vercel Bot commented Jun 9, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
agent-browser-shield-demo-site Ready Ready Preview, Comment Jun 9, 2026 11:24am

Request Review

@twschiller twschiller added the bug Something isn't working label Jun 9, 2026
@twschiller twschiller merged commit dca1078 into main Jun 9, 2026
7 checks passed
@twschiller twschiller deleted the fix/docs-home-before-after-grid branch June 9, 2026 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant