Expand description
structural_replace: match blocks by type and text, then wrap, retype, unwrap or remove each.
Structs§
- Structural
Action - What to do with each match. Exactly one field.
- Structural
Match - Which blocks to act on. Every given condition must hold; text conditions look at the visible
text of the block’s
content, without markup. - Structural
Replace Result - The blocks that matched and the pages the action changed.
Enums§
- Action 🔒
Functions§
- block_
text 🔒 - The visible text of the block’s
content, without markup. - is_
match 🔒 - op_for 🔒
- parse_
action 🔒 - structural_
replace - Applies
actionto each block ofpagesthatpatternmatches, by the page tool’s rules. Fails without changing anything whenexpected_countdiffers from the matches.