Skip to content

Commit 0f97e05

Browse files
mcanouilgordonwoodhull
authored andcommitted
refactor: use single rule for item
1 parent 5541a9b commit 0f97e05

1 file changed

Lines changed: 4 additions & 13 deletions

File tree

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

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,10 @@
1717
#stack(dir: ltr, spacing: 3pt, super[#num], contents)
1818
]
1919

20-
// Use nested show rule to preserve list structure for PDF/UA-1 accessibility
21-
// See: https://github.com/quarto-dev/quarto-cli/pull/13249#discussion_r2678934509
22-
#show terms: it => {
23-
show terms.item: item => {
24-
set text(weight: "bold")
25-
item.term
26-
block(inset: (left: 1.5em, top: -0.4em))[#item.description]
27-
}
28-
it
29-
}
30-
31-
// Prevent breaking inside definition items, i.e., keep term and description together.
32-
#show terms.item: set block(breakable: false)
20+
#show terms.item: it => block(breakable: false)[
21+
#text(weight: "bold")[#it.term]
22+
#block(inset: (left: 1.5em, top: -0.4em))[#it.description]
23+
]
3324

3425
// Some quarto-specific definitions.
3526

0 commit comments

Comments
 (0)