Skip to content

Conversation

fishwww-ww
Copy link
Contributor

No description provided.

Copy link

github-actions bot commented Oct 13, 2025

Preview Image Label

Preview Images for this PR are:

registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin-pr:9b05ba2ce58e6f14a6a767631c2048dea1aa1b04

@c121914yu c121914yu requested a review from Copilot October 13, 2025 10:00
Copy link
Contributor

@Copilot Copilot AI left a 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
Copy link

Copilot AI Oct 13, 2025

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'.

Suggested change
// 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
Copy link

Copilot AI Oct 13, 2025

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.

@c121914yu c121914yu merged commit 8e13b96 into labring:main Oct 13, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants