Repository navigation
Commit be8f856
claude: Consolidate listing alignment to show rule, add position tests
Remove the old #set align(left) workaround from the wideblock path in
floatreftarget.lua. The document-level show rule injection:
#show figure.where(kind: "quarto-float-lst"): set align(start)
now handles all listing alignment, making the inline workaround redundant.
Add ensurePdfTextPositions tests to fullwidth-listing.qmd:
- Verify listing caption is left-aligned with body text
- Verify code token "docker" is left-aligned near page left edge (~47pt)
The Page element with edge:"left" allows testing alignment against
page boundaries. The test confirms listings are not centered.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent b211a1c commit be8f856
2 files changed
Lines changed: 10 additions & 4 deletions
File tree
- src/resources/filters/customnodes
- tests/docs/smoke-all/typst/margin-layout
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1061 | 1061 | | |
1062 | 1062 | | |
1063 | 1063 | | |
1064 | | - | |
1065 | | - | |
1066 | | - | |
1067 | | - | |
1068 | 1064 | | |
1069 | 1065 | | |
1070 | 1066 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
23 | 33 | | |
24 | 34 | | |
25 | 35 | | |
| |||
0 commit comments