Skip to content

slides: PowerPoint export includes the deck's diagrams and code blocks - #55

Merged
richard-epsilla merged 1 commit into
mainfrom
fix/slides-pptx-diagrams-code
Nov 2, 2026
Merged

richard-epsilla merged 1 commit into
mainfrom
fix/slides-pptx-diagrams-code

Conversation

@richard-epsilla

Copy link
Copy Markdown
Contributor

What was wrong

The Slides PowerPoint export read the wrong fields for two element types:

Element The deck model and deck view use Export read
flowchart content.mermaid content.code / content.text
code content.source content.runs

So no diagram and no code block ever reached the .pptx, and the report said only "PowerPoint saved". Found end to end: a deck with a flowchart, drawn by mermaid in the deck view, exported to a .pptx with no images in it.

The fix

  • lib/deckContent.js reads the two fields the deck view draws (reifyui's FlowchartEl and CodeEl), and the export uses it.
  • An element with nothing to export is now named in the export's report instead of disappearing.
  • The readers have node tests, and the kit gets a test script, so CI's kit job runs them.

🤖 Generated with Claude Code

The export read a flowchart's Mermaid source from content.code / content.text and a code block's text from
content.runs. The deck model, and the deck view that draws it, use content.mermaid and content.source, so no
diagram and no code block ever reached the .pptx, and the export said nothing about it: a deck with a flowchart
exported to slides with a gap where the diagram was, under "PowerPoint saved".

Both are now read from the fields the deck view draws (lib/deckContent.js), so the .pptx carries what the deck
shows, and an element with nothing to export is named in the export's report instead of disappearing. The
readers have node tests, and the kit now has a test script, which CI runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@richard-epsilla
richard-epsilla merged commit 9fe6ba1 into main Nov 2, 2026
10 checks passed
@richard-epsilla
richard-epsilla deleted the fix/slides-pptx-diagrams-code branch November 2, 2026 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant