Skip to content

Commit 0eda022

Browse files
authored
Merge pull request #13452 from christopherkenny/patch-1
Typst `quarto_super` captions should be wrapped in a block
2 parents 32836c3 + a333479 commit 0eda022

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

news/changelog-1.9.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ All changes included in 1.9:
2323
### `typst`
2424

2525
- ([#13362](https://github.com/quarto-dev/quarto-cli/issues/13362)): Remove unused `blockquote` definitions from template.
26+
- ([#13452](https://github.com/quarto-dev/quarto-cli/issues/13452)): Wraps subfigure captions generated by `quarto_super()` in `block` function to avoid emitting `par` elements. (author: @christopherkenny)
2627

2728
## `publish`
2829

src/resources/formats/typst/pandoc/quarto/definitions.typ

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@
8282

8383
show figure: it => {
8484
let num = numbering(subcapnumbering, n-super, quartosubfloatcounter.get().first() + 1)
85-
show figure.caption: it => {
85+
show figure.caption: it => block({
8686
num.slice(2) // I don't understand why the numbering contains output that it really shouldn't, but this fixes it shrug?
8787
[ ]
8888
it.body
89-
}
89+
})
9090

9191
quartosubfloatcounter.step()
9292
it

0 commit comments

Comments
 (0)