Repository navigation
slides: PowerPoint export includes the deck's diagrams and code blocks - #55
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What was wrong
The Slides PowerPoint export read the wrong fields for two element types:
content.mermaidcontent.code/content.textcontent.sourcecontent.runsSo 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.jsreads the two fields the deck view draws (reifyui'sFlowchartElandCodeEl), and the export uses it.testscript, so CI's kit job runs them.🤖 Generated with Claude Code