-
Notifications
You must be signed in to change notification settings - Fork 37
feat: md transform to pptx plugin #228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Preview Image LabelPreview Images for this PR are:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for converting Markdown content to PowerPoint presentations by implementing a new pptx transformation plugin.
- Adds a new PPTX converter that transforms Markdown into PowerPoint slides using the
pptxgenjs
library - Integrates the PPTX format as a new option alongside existing XLSX and DOCX formats
- Includes comprehensive Markdown parsing with support for headings, paragraphs, code blocks, tables, and images
Reviewed Changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 10 comments.
File | Description |
---|---|
package.json | Adds pptxgenjs dependency for PowerPoint generation |
modules/tool/packages/markdownTransform/src/pptx.ts | Implements the complete PPTX conversion logic with Markdown parsing |
modules/tool/packages/markdownTransform/src/index.ts | Integrates pptx format into the main tool interface |
modules/tool/packages/markdownTransform/config.ts | Updates configuration to include pptx as a supported format option |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
const dpi = 96; | ||
const widthInches = displaySize.width / dpi; | ||
const heightInches = displaySize.height / dpi; | ||
// PptxGenJS use base64 as data format, can not use imageBuffer directly |
Copilot
AI
Oct 13, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Grammar issues in comments: 'use' should be 'uses' and 'can not' should be 'cannot'.
// PptxGenJS use base64 as data format, can not use imageBuffer directly | |
// PptxGenJS uses base64 as data format, cannot use imageBuffer directly |
Copilot uses AI. Check for mistakes.
} | ||
|
||
const cellTextTrimmed = cellText.trim(); | ||
// if not empty cell, parse inline, and push to row |
Copilot
AI
Oct 13, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Grammar issue in comments: 'if not empty cell' should be 'if cell is not empty' and 'if empty cell' should be 'if cell is empty'.
Copilot uses AI. Check for mistakes.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
No description provided.