Skip to main content

page-container

A non-breakable page container that prevents slide content from overflowing to the next page. When used, content that exceeds the slide height will be constrained rather than creating additional pages.

This is useful for ensuring a strict one-to-one mapping between source slides and output pages, which is important in agentic workflows where an agent needs to reason about slide boundaries.

Parameters

clip : bool    default: false

Whether to clip overflowing content. When true, content that exceeds the slide height will be visually truncated. Default is false.

detect-overflow : bool    default: false

Whether to detect and panic on overflow. When true, a layout + measure check is performed and panic() is called if the content height exceeds the available container height. When false, no overflow detection is performed (avoids the layout overhead). Default is false.

body : content

The slide content to constrain within a single page.

Returns: content