Skip to content

format: revealjs: .notes div content rendered as visible slide content #252

@cderv

Description

@cderv

Speaker notes defined with ::: {.notes} appear as regular visible text on the slide instead of being routed to the RevealNotes speaker window.

Minimal example:

---
format: revealjs
---

## My slide

Content here.

::: {.notes}
These should be hidden.
:::

RevealNotes plugin is loaded in RevealjsReactAstSlideRenderer.tsx, but renderBlock's case 'Div' has no class guard for notes — all divs render unconditionally. For reveal.js speaker notes to work, .notes divs need to render as <aside class="notes"> elements, not regular slide content.

Likely affects format: q2-slides too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions