Present: dividers left off the slides
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
b286cbddbf
commit
3aef3b1c34
1 changed files with 5 additions and 4 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue