Present: dividers left off the slides

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-11-12 06:59:58 -06:00
parent b286cbddbf
commit 3aef3b1c34

View file

@ -93,13 +93,14 @@ export default function ContentBlocks({
anchorPrefix?: string
}) {
const presenting = usePresenting()
// Presented, a block shown only on the page is left out and the
// rest take their Presentation text (095, 099); on the page, a block
// shown only in the presentation is.
// Presented, a block shown only on the page is left out, so is a
// divider (a slide has its own edges), and the rest take their
// Presentation text (095, 099); on the page, a block shown only in
// the presentation is.
if (blocks) {
blocks = presenting
? blocks
.filter((block) => !block.present?.hide)
.filter((block) => !block.present?.hide && block.type !== 'divider')
.map((block) => (block.present?.text ? { ...block, text: block.present.text } : block))
: blocks.filter((block) => !block.present?.only)
}