docs(reference): cover bare dice and tilde fences
Add the bare d-form (d20) to the dice notation table, and note that role fences accept backticks or tildes with hyphen-capable attribute keys. Regenerate both reference copies from known.ts and mirror the notes in the skill and markdown docs.
This commit is contained in:
@@ -54,7 +54,9 @@ in `reference.md`.
|
||||
|
||||
## Code block roles
|
||||
|
||||
Fenced blocks are dispatched by the `role=` attribute in the info string:
|
||||
Fenced blocks are dispatched by the `role=` attribute in the info string. Both
|
||||
backtick and tilde (`~~~`) fences work; the closing fence must reuse the opening
|
||||
marker, and fence attribute keys may contain hyphens (e.g. `data-foo=bar`):
|
||||
|
||||
| Info string | Behavior |
|
||||
|---|---|
|
||||
|
||||
@@ -256,6 +256,10 @@ Renders a clickable span that dispatches a journal command.
|
||||
The `role=` attribute on the info string determines how a fenced block is
|
||||
handled.
|
||||
|
||||
Fences may use backticks or tildes (`~~~`); the closing fence must reuse
|
||||
the opening marker. Fence attribute keys may contain hyphens (e.g.
|
||||
`data-foo=bar`).
|
||||
|
||||
### `role=spark-table`
|
||||
|
||||
CSV (or markdown pipe table) rendered as `:md-table`.
|
||||
@@ -339,6 +343,7 @@ Used by `:md-dice`, spark-table headers, and the journal `/roll`:
|
||||
|---|---|
|
||||
| `2d6` | two six-sided dice |
|
||||
| `1d20+5` | d20 plus modifier |
|
||||
| `d20` | one twenty-sided die (count optional) |
|
||||
| `3d6kh1` | keep highest 1 |
|
||||
| `3d6dl2-1` | drop lowest 2, minus 1 |
|
||||
| `{d4, d8}` | choose one of the listed dice |
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
`` ```yaml role=tag `` renders a custom element from YAML. `tag` names the
|
||||
element, `body` becomes its content, and any other key becomes an attribute.
|
||||
Fence-line attributes override the YAML body. See `reference.md` for the
|
||||
element and role catalog.
|
||||
Fence-line attributes override the YAML body; both backtick and tilde (`~~~`)
|
||||
fences work. See `reference.md` for the element and role catalog.
|
||||
|
||||
````markdown
|
||||
```yaml role=tag
|
||||
|
||||
Reference in New Issue
Block a user