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 anchorPrefix?: string
}) { }) {
const presenting = usePresenting() const presenting = usePresenting()
// Presented, a block shown only on the page is left out and the // Presented, a block shown only on the page is left out, so is a
// rest take their Presentation text (095, 099); on the page, a block // divider (a slide has its own edges), and the rest take their
// shown only in the presentation is. // Presentation text (095, 099); on the page, a block shown only in
// the presentation is.
if (blocks) { if (blocks) {
blocks = presenting blocks = presenting
? blocks ? 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)) .map((block) => (block.present?.text ? { ...block, text: block.present.text } : block))
: blocks.filter((block) => !block.present?.only) : blocks.filter((block) => !block.present?.only)
} }