Apply show rules to content trees before compilation.
Show rules emulate Typst's #show mechanism by transforming
matching content elements in Elixir before sending to Rust.
They are applied bottom-up: children are transformed first, then the parent node is matched and replaced.
Show rules found anywhere in the content tree are extracted and applied globally. Place them at the top level for clarity.
Summary
Functions
Extract all show rules from the content tree and apply them.
Functions
@spec apply([Folio.Content.t()]) :: [Folio.Content.t()]
Extract all show rules from the content tree and apply them.
Returns the transformed content with all show rules removed.