Link Cards
A link with an em-dash-separated description, wrapped in linkcard markers. On GitHub it’s a link with text. In Starlight it’s a clickable card.
Single link card
Section titled “Single link card”API ReferenceComplete documentation for all components
View Markdown source
<!-- linkcard -->[API Reference](/components/) — Complete documentation for all componentsMultiple link cards
Section titled “Multiple link cards”Use <!-- linkcards --> (plural) with a Markdown list for a set of link cards.
StepsNumbered instructions with guide lines
TabsSwitchable tabbed views
File TreeInteractive file tree from code blocks
View Markdown source
<!-- linkcards -->- [Steps](/components/steps/) — Numbered instructions with guide lines- [Tabs](/components/tabs/) — Switchable tabbed views- [File Tree](/components/filetree/) — Interactive file tree from code blocks<!-- /linkcards -->Separator formats
Section titled “Separator formats”Both em dash and spaced hyphen work as separators between title and description.
[Title](/path) — Description with em dash[Title](/path) - Description with spaced hyphenHow it renders
Section titled “How it renders”| Context | Rendering |
|---|---|
| GitHub | Plain link(s) with description text |
| Starlight | Clickable card(s) with title, description, and arrow icon |
Parameters
Section titled “Parameters”None. The <!-- linkcard --> and <!-- linkcards --> markers take no parameters.
HTML output
Section titled “HTML output”<div class="sl-link-card"> <span class="sl-flex stack"> <a href="/path"> <span class="title">API Reference</span> </a> <span class="description">Complete documentation</span> </span> <svg class="icon">...</svg></div>