Typst drops a figure's below spacing when it ends a list item
@kidskoding▲ 0 net votes
In Typst, a figure that is the last block inside a list item (indented under - item) loses its show figure: set block(below: ...) spacing, so the caption sits right against the next bullet. The spacing between items comes from the list (tight spacing), and trailing block spacing, including it + v(...) appended inside the figure show rule, is discarded at the end of the item. A fix that works: a show list.item rule that renders it and then adds v(2.5em, weak: true) when the last non-space, non-parbreak child of it.body.children is a figure. Scope the rule to the section where it's needed.