# md_exporter
**Repository Path**: lucosin/md_exporter
## Basic Information
- **Project Name**: md_exporter
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: Apache-2.0
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2025-04-17
- **Last Updated**: 2025-04-17
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# Markdown Exporter - Generate files from Mardown
**Author:** [bowenliang123](https://github.com/bowenliang123)
**Github Repository:** https://github.com/bowenliang123/md_exporter
**Dify Marketplace:** https://marketplace.dify.ai/plugins/bowenliang123/md_exporter
## Description
This Dify plugin `md_exporter` provides tools to export Markdown text to DOCX, PPTX, XLSX, PDF, HTML, MD, CSV, JSON, XML, LaTex, RST files, and extract code blocks to snippet files as `.py`, `.sh` , `.js`, `.xml` file, and etc.
Tool |
Input
(Syntax)
|
Output |
md_to_docx |
Markdown text
|
Word file (.docx) |
md_to_html |
HTML file (.html) |
md_to_pdf |
PDF file (.pdf) |
md_to_md |
Markdown file (.md) |
md_to_xml |
XML file (.xml) |
md_to_rst |
reStructuredText file (.rst)
[with basic syntax support]
|
md_to_pptx |
Markdown slides
|
PowerPoint file (.pptx) |
md_to_codeblock |
in Markdown text
|
Generating files by language:
- python → .py file
- javascript → .js file
- html → .html file
- bash → .sh file
- json → .json file
- xml → .xml file
- svg → .svg file
- css → .css file
- yaml → .yaml file
- ruby → .rb file
- java → .java file
- php → .php file
- markdown → .md file
Or a ZIP file of codeblock files.
|
md_to_xlsx |
Markdown tables |
Excel file (.xlsx) |
md_to_csv |
Single Markdown table
|
CSV file (.csv) |
md_to_json |
JSON file (.json) |
md_to_latex |
LaTeX file (.tex) |
## Usage

## Tools
### Markdown → DOCX

---
### Markdown → XLSX
Input Markdown text:
```
| Name | Age | City |
|---------|-----|-------------|
| Alice | 30 | New York |
| Bowen | 25 | Guangzhou |
| Charlie | 35 | Tokyo |
| David | 40 | Miami |
```
output XLSX file:

---
### Markdown → PPTX
The input Markdown text of slides must follows the syle rules of [md2pptx's syntax](https://github.com/MartinPacker/md2pptx/blob/master/docs/user-guide.md#creating-slides).
```
# This Is A Presentation Title Page
## This Is A Presentation Section Page
### This Is A Bulleted List Page
* One
* One A
* One B
* Two
```

---
### Markdown → HTML

---
### Markdown → PDF

---
### Markdown → Code Blocks files (.py/.sh/.html/.css, etc.)
Multiple generated files in formats by language type of the extracted code blocks:
- python → .py file
- javascript → .js file
- html → .html file
- bash → .sh file
- json → .json file
- xml → .xml file
- svg → .svg file
- css → .css file
- yaml → .yaml file
- ruby → .rb file
- java → .java file
- php → .php file
- markdown → .md file

If compression is enabled, all the code blocks will be generated into a single ZIP file.


---
### Markdown → RST (reStructedText)
Converted .rst file by using mistune's RST render with basic reStructedText syntax support.

---
### Markdown → CSV

---
### Markdown → JSON

---
### Markdown → XML

---
### Markdown → LaTeX
output LaTeX file:

viewed as PDF:

---
### Markdown → Markdown
Output `.md` file with orginal input Markdown text.
---
## Changelog
- 0.4.2:
- support Java, PHP and Ruby file exporting in `md_to_codeblocks` tool
- 0.4.1:
- support YAML file exporting in `md_to_codeblocks` tool
- 0.4.0:
- support exporting Markdown codeblocks in to single zip file in `md_to_codeblocks` tool
- 0.3.0:
- Fixed the error in importing libraries of `md_to_pptx` tool when running on self-hosted Dify plugin-daemon service
- 0.2.0:
- Introducing `md_to_codeblock` tool, support extracting code blocks in Markdown to Python, JSON, JS, BASH, SVG, HTML, XML, MARKDOWN files.
- Introducing `md_to_rst` tool, support reStructuredText `.rst` file format as destination file format
- 0.1.x:
- Introducing `md_to_pptx` tool, support PowerPoint `.pptx` file format as destination file format
- 0.0.x:
- Published to Dify Marketplace
- support exporting Markdown to DOCX, PPTX, XLSX, PDF, HTML, MD, CSV, JSON, XML, LaTex files
## Used Open sourced projects
This Dify plugin uses the following open sourced projects:
- [html2docx](https://github.com/erezlife/html2docx), MIT License
- [md2pptx](https://github.com/MartinPacker/md2pptx) , MIT License
- [mistune](https://github.com/lepture/mistune), BSD 3-Clause License
- [pandas](https://github.com/pandas-dev/pandas), BSD 3-Clause License
- [python-pptx](https://github.com/scanny/python-pptx), MIT License
- [xhtml2pdf](https://github.com/xhtml2pdf/xhtml2pdf), Apache License 2.0
## License
- Apache License 2.0
## Privacy
This plugin collects no data.
All the file transformations are completed locally. NO data is transmitted to third-party services.