is there a way to modify figure.caption only for figures of a certain kind?
im customising some code blocks, but unless i match it will restyle the "Table, Figure" etc. text in other elements
// #show figure.where(kind: "code"): [
#show figure.caption: it => [
#set text(0.65em, fill: gray)
// #if figure.kind == "code" [
#it.supplement
#h(1fr)
// ]
#set text(9pt, fill: black)
#context it.counter.display(it.numbering): #text(it.body)
]
// ]
im aware of the .where(): set pattern and also how to control the caption's body
additionally, this could be approached differently if it is possible to customize the text indicating the figure type (like "Figure", "Table", "Listing") differently from the specific supplement text provided in #figure(... supplement: "Example text) ?
when using #it.supplement they seem to be grouped together
