Markdown Extended Features
Here are some extended Markdown features supported by Retypeset, including syntax examples and their stylistic effects.
Figure Captions
To create automatic figure captions, use the standard Markdown image syntax 
. To hide the caption, add an underscore _
before the alt
text or leave the alt
text empty.
Syntax


Output

Github Repository Cards
To create a Github repository card, use the double colon syntax ::github{repo="owner/repo"}
. Repository data is fetched from the GitHub API after the page loads.
Syntax
::github{repo="radishzzz/astro-theme-retypeset"}
Output
Loading repository data...
Admonition
To create admonition blocks, use the GitHub syntax > [!TYPE]
or the triple colon syntax :::type
. Following types are supported: note
, tip
, important
, warning
, and caution
.
Syntax
> [!NOTE]
> Useful information that users should know, even when skimming content.
:::note
Useful information that users should know, even when skimming content.
:::
:::note[YOUR CUSTOM TITLE]
This is a note with a custom title.
:::
Output
NOTEUseful information that users should know, even when skimming content.
TIPHelpful advice for doing things better or more easily.
IMPORTANTKey information users need to know to achieve their goal.
WARNINGUrgent info that needs immediate user attention to avoid problems.
CAUTIONAdvises about risks or negative outcomes of certain actions.
YOUR CUSTOM TITLEThis is a note with a custom title.