跳到正文
Sumi 中文文档已上线,部分页面暂为英文。阅读 Sumi 介绍
Sumi
本页目录

本页还没有翻译,下面是 English 版本。

Badges#

Put {.badge} right after bold or italic text to turn it into a badge. This is the standard attr_list syntax, so a renderer that does not know Sumi still shows the word in bold.

## Command palette **New**{.badge .new}

| Option | Status |
| --- | --- |
| `palette` | **Stable**{.badge .tip} |
| `brand` | **Beta**{.badge .warning} |
| `legacy_nav` | **Deprecated**{.badge .deprecated} |
Option Status
palette Stable
brand Beta
legacy_nav Deprecated

Tones#

A second class picks the colour. Without one, a badge is neutral grey.

Class Badge
(none) Default
.note, .info Note
.tip, .success Stable
.important, .new New
.warning Beta
.caution, .danger, .deprecated Removed
.accent Sumi

In headings#

A badge in a heading shrinks to fit, and stays out of the table of contents text.

Version 0.2 Latest#

## Version 0.2 **Latest**{.badge .tip}
Esc
↵ 打开 ↑↓ 移动 Esc 关闭
键盘快捷键
Ctrl K /
打开搜索与命令面板
t
切换深色模式
[ ]
上一页 / 下一页
j k
上一个 / 下一个标题
?
显示本帮助