Repository navigation
Commit 3ead22c
committed
typst: use Typst 0.15 native std.divider for horizontal rules
Reverts the divider() alias from f67d9f4b7. Quarto's template no longer
shadows divider, so Pandoc 3.13's `#divider()` output resolves to the
native std.divider element, matching pandoc's default template with
typst >= 0.15 (Quarto bundles Typst 0.15.1, so pandoc's polyfill branch
is never taken).
Rationale: the centered 25-75% line was inherited from pandoc's old
definitions.typst (97a1d3d), not a Quarto design decision. Pinning it
would diverge from upstream permanently and shadow the native element,
which users can restyle with `#show divider:` rules. Horizontal rules
in typst output now render full-width instead of centered half-width;
the visual change is tracked for the 1.12 changelog.1 parent 3238896 commit 3ead22c
3 files changed
Lines changed: 8 additions & 10 deletions
File tree
- llm-docs
- src/resources/formats/typst/pandoc/quarto
- tests/docs/smoke-all/typst
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | 15 | | |
20 | 16 | | |
21 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | | - | |
13 | | - | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
0 commit comments