docs(doc-entries): Show examples as code blocks

Directive examples sat bare in the doc bodies, so rendering them as
markdown executed the directives: live components, missing-file
fetches, and style side effects on the dialog. Wrap each example in
a markdown fence, matching the convention already used by md-table.
This commit is contained in:
hyper
2026-09-12 19:58:37 +08:00
parent a752fdc2f4
commit 53620e0a92
9 changed files with 52 additions and 6 deletions
+8 -1
View File
@@ -9,18 +9,25 @@ title: 字体组件
**语法:** `:md-font[字体名]{选项}`
**Google 字体:**
```markdown
:md-font[Noto Sans SC]{source="google"}
```
**Emfont 字体:**
```markdown
:md-font[Source Han Serif]{source="emfont" weight="700"}
```
**本地字体(默认):**
```markdown
:md-font[STSong]
```
**设置文字颜色:**
```markdown
:md-font[Noto Sans SC]{source="google" color="#1a1a2e"}
:md-font[Noto Sans SC]{source="google" weight="700" color="crimson"}
```
字体和颜色将应用到整个文档卡片。