Zero MDX Required
Write standard GFM Markdown. No imports, no components, no framework lock-in.
This page tests every GFM convention. On GitHub this renders as plain, readable Markdown. In Starlight it upgrades to rich interactive components.
pnpm add rehype-gfm-componentsnpm install rehype-gfm-componentspnpm add rehype-gfm-componentsbun add rehype-gfm-componentsZero MDX Required
Write standard GFM Markdown. No imports, no components, no framework lock-in.
GitHub Compatible
Every page renders cleanly on GitHub. HTML comments are invisible, details/summary is native.
Full Starlight Integration
Tabs, cards, steps, file trees — all using Starlight’s own CSS. No extra stylesheets needed.
How It Works
HTML comments (<!-- steps -->) act as invisible markers around
standard GFM constructs. A rehype plugin transforms the HTML output
into Starlight-compatible rich components during the build.
This feature is New and ready for production.
The API is Stable with full backwards compatibility.
Authentication is Beta — expect changes.
GFM footnotes become inline hover tooltips. Hover or focus the underlined word to see the definition.
This plugin is built on AstroAstro is a modern web framework for content-driven sites. and integrates with StarlightStarlight is Astro’s official documentation theme. for documentation sites. It uses rehyperehype is an HTML processor powered by plugins, part of the unified ecosystem. under the hood.
Group related <details> with <!-- accordiongroup --> for a unified
card with dividers.
Markdown, MDX, and plain HTML all work. The plugin operates at the rehype (HTML) level, so any input that produces valid HAST is supported.
No. The Starlight adapter injects all necessary styles automatically.
Standalone users can import rehype-gfm-components/styles/starlight.css.
Yes. Footnotes render as standard GFM footnotes on GitHub, and
<details> / <summary> is natively supported in GitHub Markdown.
A single unwrapped <details> still gets basic styling.
This is a standalone accordion without the group wrapper.