Filters

Filters are used by rules such as show rules and filtered rules. They allow specifying which elements those rules should apply to.

They are mostly similar to Typst's selectors, including some of its operators (and_, or_), but with some additional operators: within to match children, not_ for negation, xor for either/or (not both), and custom to apply any condition.