diff --git a/src/resources/formats/typst/pandoc/quarto/definitions.typ b/src/resources/formats/typst/pandoc/quarto/definitions.typ index 5657c633b8..f73552472f 100644 --- a/src/resources/formats/typst/pandoc/quarto/definitions.typ +++ b/src/resources/formats/typst/pandoc/quarto/definitions.typ @@ -17,19 +17,10 @@ #stack(dir: ltr, spacing: 3pt, super[#num], contents) ] -// Use nested show rule to preserve list structure for PDF/UA-1 accessibility -// See: https://github.com/quarto-dev/quarto-cli/pull/13249#discussion_r2678934509 -#show terms: it => { - show terms.item: item => { - set text(weight: "bold") - item.term - block(inset: (left: 1.5em, top: -0.4em))[#item.description] - } - it -} - -// Prevent breaking inside definition items, i.e., keep term and description together. -#show terms.item: set block(breakable: false) +#show terms.item: it => block(breakable: false)[ + #text(weight: "bold")[#it.term] + #block(inset: (left: 1.5em, top: -0.4em))[#it.description] +] // Some quarto-specific definitions.