ttrpg-tools/content/deck-test.md

57 lines
937 B
Markdown
Raw Normal View History

2026-02-28 11:42:42 +08:00
# yaml/tag 代码块格式测试
2026-02-28 17:39:51 +08:00
```yaml/tag
tag: md-deck
body: ./npcs.csv
layers: body:1,6-5,8
```
> [!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.
2026-02-28 11:42:42 +08:00
## 使用 yaml/tag 语法创建 md-deck
```yaml/tag
tag: md-deck
body: ./sparks.csv
size: 54x86
grid: 5x8
bleed: 1
padding: 2
font-size: 3
```
## 使用 body 字段添加内容
```yaml/tag
tag: tag-box
class: note
body: |
这是一个提示框
```
## 带引号的值
```yaml/tag
tag: tag-alert
type: warning
class: my-alert
body: 这是一个警告信息
```
## 旧的指令语法仍然可用
:md-deck[./sparks.csv]{size="54x86" grid="5x8"}