GitHub Repository Cards
You can add dynamic cards that link to GitHub repositories, on page load, the repository information is pulled from the GitHub API.
Create a GitHub repository card with the code ::github{repo="LyraVoid/Mizuki"}.
::github{repo="LyraVoid/Mizuki"}Admonitions
Following types of admonitions are supported: note tip important warning caution
NOTEHighlights information that users should take into account, even when skimming.
TIPOptional information to help a user be more successful.
IMPORTANTCrucial information necessary for users to succeed.
WARNINGCritical content demanding immediate user attention due to potential risks.
CAUTIONNegative potential consequences of an action.
Basic Syntax
:::noteHighlights information that users should take into account, even when skimming.:::
:::tipOptional information to help a user be more successful.:::Custom Titles
The title of the admonition can be customized.
MY CUSTOM TITLEThis is a note with a custom title.
:::note[MY CUSTOM TITLE]This is a note with a custom title.:::GitHub Syntax
TIPThe GitHub syntax is also supported.
> [!NOTE]> The GitHub syntax is also supported.
> [!TIP]> The GitHub syntax is also supported.Spoiler
You can add spoilers to your text. The text also supports Markdown syntax.
The content
The content :spoiler[is hidden **ayyy**]!Code Groups
Use VitePress-style ::: code-group labels=[...] syntax to present related
examples as accessible tabs. Tabs support mouse input and the
Left, Right, Home, and End keys.
export const config = { framework: "Mizuki", enhanced: true,};pnpm check && pnpm build3 collapsed lines
import { one } from "one";import { two } from "two";import { three } from "three";console.log(one, two, three);::: code-group labels=[TypeScript, Shell]
```ts title="config.ts"export const framework = "Mizuki";```
```bash title="Build"pnpm build```
:::Automatic Long-Code Collapse
Code blocks longer than the configured threshold are collapsed automatically.
Authors can continue using collapse={...} to fold selected line ranges.
01020304050607080910111213141516171819202122Extended Callouts
In addition to GitHub’s five alert types, Mizuki accepts common Obsidian
aliases such as INFO, TODO, SUCCESS, QUESTION, DANGER, BUG,
EXAMPLE, and QUOTE.
Known limitationExtended aliases are mapped to Mizuki’s semantic callout styles.
Python Markdown and Docusaurus-style directives are supported as well:
Danger directiveThis directive uses a custom title.
> [!BUG] Known limitation> Describe the known issue here.
:::danger[Danger directive]This directive uses a custom title.:::Wiki Links
Obsidian-style Wiki Links resolve article paths, aliases, and heading anchors. A standalone link becomes an article card:
Inline links stay inline. See the Mermaid examples, or link directly to a section.
[[markdown-mermaid]]
See [[markdown-mermaid|the Mermaid examples]].Automatic Image Grids
Two or more adjacent standalone images are grouped into a responsive gallery.
Explicit :::grid directives remain available when custom columns, aspect
ratio, or object fitting are required.
PlantUML
PlantUML fences generate SVG diagrams through the configured server. Diagrams support light and dark sources, zooming, dragging, resetting, and fullscreen viewing.
```plantuml@startumlAlice -> Bob: Hello@enduml```Chemistry
The KaTeX mhchem extension renders chemical equations:
如果这篇文章对你有帮助,欢迎分享给更多人!
部分信息可能已经过时







