mobile wallpaper 1mobile wallpaper 2mobile wallpaper 3mobile wallpaper 4
338 字
2 分钟
Markdown Extended Features
2024-05-01
2026-07-30

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.

LyraVoid
/
Mizuki
Waiting for api.github.com...
00K
0K
0K
Waiting...

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

NOTE

Highlights information that users should take into account, even when skimming.

TIP

Optional information to help a user be more successful.

IMPORTANT

Crucial information necessary for users to succeed.

WARNING

Critical content demanding immediate user attention due to potential risks.

CAUTION

Negative potential consequences of an action.

Basic Syntax#

:::note
Highlights information that users should take into account, even when skimming.
:::
:::tip
Optional information to help a user be more successful.
:::

Custom Titles#

The title of the admonition can be customized.

MY CUSTOM TITLE

This is a note with a custom title.

:::note[MY CUSTOM TITLE]
This is a note with a custom title.
:::

GitHub Syntax#

TIP

The 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 is hidden ayyy!

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.

config.ts
export const config = {
framework: "Mizuki",
enhanced: true,
};
::: 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.

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22

Extended 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 limitation

Extended aliases are mapped to Mizuki’s semantic callout styles.

Python Markdown and Docusaurus-style directives are supported as well:

Danger directive

This directive uses a custom title.

> [!BUG] Known limitation
> Describe the known issue here.
:::danger[Danger directive]
This directive uses a custom title.
:::

Obsidian-style Wiki Links resolve article paths, aliases, and heading anchors. A standalone link becomes an article card:

Markdown Mermaid
A simple example of a Markdown blog post with Mermaid.
2023-10-01Examples#Markdown#Blogging#Mermaid

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.

Square demo 1
Square demo 1
Square demo 2
Square demo 2
![First image](/images/first.webp)
![Second image](/images/second.webp)

PlantUML#

PlantUML fences generate SVG diagrams through the configured server. Diagrams support light and dark sources, zooming, dragging, resetting, and fullscreen viewing.

@startuml
actor Author
Author -> Mizuki: Write Markdown
Mizuki --> Author: Render enhanced article
@enduml
```plantuml
@startuml
Alice -> Bob: Hello
@enduml
```

Chemistry#

The KaTeX mhchem extension renders chemical equations:

HX2O+COX2HX2COX3\ce{H2O + CO2 -> H2CO3}
分享

如果这篇文章对你有帮助,欢迎分享给更多人!

Markdown Extended Features
https://mizuki.mysqil.com/posts/markdown-extended/
作者
まつざか ゆき
发布于
2024-05-01
许可协议
CC BY-NC-SA 4.0

部分信息可能已经过时

目录