Skip to content

Commit a01416c

Browse files
claude: Update typst-listings tests for new alignment approach
Listings now use a show rule for alignment: #show figure.where(kind: "quarto-float-lst"): set align(start) instead of inline #set align(left) inside the figure. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent c088023 commit a01416c

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

‎tests/docs/smoke-all/crossrefs/float/typst/typst-listings-1.qmd‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ _quarto:
66
tests:
77
typst:
88
ensureTypstFileRegexMatches:
9-
-
10-
- '#figure\(\[\s+#set align\(left\)\s+#Skylighting'
9+
-
10+
# Listings now use a show rule for alignment instead of inline #set align
11+
- '#show figure\.where\(kind: "quarto-float-lst"\): set align\(start\)'
12+
- '#figure\(\[\s*\n#Skylighting'
1113
- 'kind: "quarto-float-lst"'
1214
- '#ref\(<lst-customers>, supplement: \[Listing\]\)'
1315
- 'Customers Query'

‎tests/docs/smoke-all/crossrefs/float/typst/typst-listings-2.qmd‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ _quarto:
66
tests:
77
typst:
88
ensureTypstFileRegexMatches:
9-
-
10-
- '#figure\(\[\s+#set align\(left\)\s+#Skylighting'
9+
-
10+
# Listings now use a show rule for alignment instead of inline #set align
11+
- '#show figure\.where\(kind: "quarto-float-lst"\): set align\(start\)'
12+
- '#figure\(\[\s*\n#Skylighting'
1113
- 'kind: "quarto-float-lst"'
1214
- '#ref\(<lst-customers>, supplement: \[Listing\]\)'
1315
- 'Customers Query'

0 commit comments

Comments
 (0)