feat: gate a run of blocks to chosen output formats

This commit is contained in:
randogoth 2026-10-09 16:35:11 +03:00
parent bb7a5111a1
commit 603f29b0f0
9 changed files with 437 additions and 22 deletions

View file

@ -122,6 +122,9 @@ impl<'a> Layout<'a> {
prefix,
Placement { align: Some(*align), inset: margin.unwrap_or(0) as usize },
),
// Gates are filtered out before rendering; keeping the content is
// the harmless reading if one ever arrives here.
Block::Gated { block, .. } => self.block(block, prefix, place),
// Nothing paginates here, so a divider has nothing to divide.
Block::CardBreak { .. } => {}
Block::Html(_) => {}