You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature: "Copy as Markdown" for page and section content #3444
Feature: Copy as Markdown for page and section content
Summary
Add an optional "Copy as Markdown" action that copies either:
the entire page, or
the current section (from the focused heading to the next same-level heading).
Goal: make it effortless to share docs context with AI assistants, agentic coding tools, and issue trackers while preserving Markdown semantics.
Motivation
This is becoming a common pattern on modern docs sites. The Anthropic docs (https://docs.anthropic.com/) are a good example of AI-friendly documentation with strong copy interactions geared for downstream tooling.
Starlight already provides copy buttons for code blocks via Expressive Code; extending this to page/section content unlocks high‑value AI and agent workflows.
Edge Cases
Interactive/MDX-only components: degrade gracefully with best-effort Markdown.
Image/asset paths: preserve relative URLs by default; allow an option to absolutize links.
Activity
HiDeoo commentedon Sep 26, 2025
Thanks for the feedback 🙌
We use issues only to track bugs and rely on discussions for feature requests so I'm going to convert this issue to a discussion.