feat(md-print): use mm font and corner page numbers

Body font size is now specified in millimetres and defaults to 3mm. Page numbers move from the centre footer to the outer bottom corners, alternating left and right per A5 page.
This commit is contained in:
2026-10-23 11:28:22 +08:00
parent 80da5364e5
commit 1ce76dca64
12 changed files with 60 additions and 34 deletions
+4 -4
View File
@@ -464,7 +464,7 @@ data-config:
```markdown
:md-print[./rules.md]
:md-print[./rules.md]{columns="2" margin="10" gap="5" font="9"}
:md-print[./rules.md]{columns="2" margin="10" gap="5" font="3"}
```
**功能:**
@@ -480,9 +480,9 @@ data-config:
| `columns` | number | `2` | 每个 A5 页面的列数(1–4) |
| `margin` | number | `10` | 页面边距(毫米) |
| `gap` | number | `5` | 列间距(毫米) |
| `font` | number | `9` | 正文字号(磅) |
| `font` | number | `3` | 正文字号(毫米) |
| `title` | string | - | 页眉标题 |
| `pageNumbers` | boolean | `true` | 是否显示页码 |
| `pageNumbers` | boolean | `true` | 是否在页面外侧角落显示页码 |
| `cutMarks` | boolean | `true` | 是否显示 A4 中缝裁切线 |
**YAML 写法:**
@@ -493,7 +493,7 @@ body: ./rules.md
columns: 2
margin: 10
gap: 5
font: 9
font: 3
title: 规则书
```