feat(md-print): add timestamp footer option
This commit is contained in:
+8
-3
@@ -48,7 +48,7 @@ Nest with more colons (`::::`, `:::::`).
|
||||
| `:md-dice` | dice formula | `key` |
|
||||
| `:md-table` | CSV path or inline id | `roll`, `remix` |
|
||||
| `:md-deck` | CSV path | `size`, `grid`, `layers` |
|
||||
| `:md-print` | markdown path, optional #section | `columns`, `margin`, `gap`, `font`, `title`, `pageNumbers`, `cutMarks` |
|
||||
| `:md-print` | markdown path, optional #section | `columns`, `margin`, `gap`, `font`, `title`, `pageNumbers`, `timestamp`, `cutMarks` |
|
||||
| `:md-link` | path, optional #section | — |
|
||||
| `:md-embed` | path, optional #section | `headingBase` |
|
||||
| `:md-bg` | image path or CSS color | `fit` |
|
||||
@@ -116,15 +116,19 @@ Prefer the `yaml role=tag` form — it is the only form that supports template l
|
||||
|
||||
Paginates a markdown document into A4 landscape sheets for printing.
|
||||
|
||||
Each sheet holds two A5 pages side by side, and each A5 page flows the markdown into `columns` columns. `margin`, `gap`, and `font` are in millimetres (the body font defaults to 3mm). `pageNumbers` adds an `n / total` footer in the outer corner and `cutMarks` draws the centre cut line. The preview modal exports through the browser's print dialog (choose A4 landscape, no margins, 100% scale).
|
||||
Each sheet holds two A5 pages side by side, and each A5 page flows the markdown into `columns` columns. `margin`, `gap`, and `font` are in millimetres (the body font defaults to 3mm). `pageNumbers` adds an `n / total` footer in the outer corner, `timestamp` appends the export time to that footer, and `cutMarks` draws the centre cut line. The preview modal exports through the browser's print dialog (choose A4 landscape, no margins, 100% scale).
|
||||
|
||||
- Body: markdown path, optional #section
|
||||
- Attributes: `columns`, `margin`, `gap`, `font`, `title`, `pageNumbers`, `cutMarks`
|
||||
- Attributes: `columns`, `margin`, `gap`, `font`, `title`, `pageNumbers`, `timestamp`, `cutMarks`
|
||||
|
||||
```markdown
|
||||
:md-print[./rules.md]{columns="2" margin="10" gap="5" font="3"}
|
||||
```
|
||||
|
||||
```markdown
|
||||
:md-print[./rules.md]{timestamp=true}
|
||||
```
|
||||
|
||||
````markdown
|
||||
```yaml role=tag
|
||||
tag: md-print
|
||||
@@ -134,6 +138,7 @@ margin: 10
|
||||
gap: 5
|
||||
font: 3
|
||||
title: 规则书
|
||||
timestamp: true
|
||||
```
|
||||
````
|
||||
|
||||
|
||||
Reference in New Issue
Block a user