Author: bowenliang123
Github Repository: https://github.com/bowenliang123/md_exporter
Dify Marketplace: https://marketplace.dify.ai/plugins/bowenliang123/md_exporter
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
with md2pptx style
|
PowerPoint file (.pptx) |
md_to_codeblock |
in Markdown text
|
Generating files by language:
Or a ZIP file of codeblock files.
|
md_to_linked_image |
in Markdown text
|
Images files from the linked image URLs.
Only http or https URLs are supported.
|
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) |
Input Markdown text:
| Name | Age | City |
|---------|-----|-------------|
| Alice | 30 | New York |
| Bowen | 25 | Guangzhou |
| Charlie | 35 | Tokyo |
| David | 40 | Miami |
output XLSX file:
The input Markdown text of slides must follows the syle rules of md2pptx's syntax.
# This Is A Presentation Title Page
## This Is A Presentation Section Page
### This Is A Bulleted List Page
* One
* One A
* One B
* Two
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.
Converted .rst file by using mistune's RST render with basic reStructedText syntax support.
output LaTeX file:
viewed as PDF:
Output .md
file with orginal input Markdown text.
-
1.2.0:
- Support compressing images to single zip file in
md_to_linked_image
tool
- Support compressing images to single zip file in
-
1.1.0:
- Enable line breaks normalization in all tools by default, replacing all the occurrences of
\\n
to\n
- Remove
<think>
tags of reasoning content in the input Markdown text - Fix missing custom output filename support in md_to_csv, md_to_json, md_to_latex tool
- Enable line breaks normalization in all tools by default, replacing all the occurrences of
-
1.0.1:
- Remove redundant URL safe conversion in custom output filename
-
1.0.0:
- Support customize the output file name
-
0.5.0:
- Introducing
md_to_linked_image
tool, support extracting image files in links in Markdown text
- Introducing
-
0.4.3:
- improve the display of Chinese characters in text paragraph in
md_to_docx
tool, by setting global font to Song if content contains Chinese - improve the display of Chinese characters in text paragraph inmd_to_docx
tool, by setting global font to Song if content contains Chinese charactor
- improve the display of Chinese characters in text paragraph in
-
0.4.2:
- support Java, PHP and Ruby file exporting in
md_to_codeblocks
tool
- support Java, PHP and Ruby file exporting in
-
0.4.1:
- support YAML file exporting in
md_to_codeblocks
tool
- support YAML file exporting in
-
0.4.0:
- support exporting Markdown codeblocks in to single zip file in
md_to_codeblocks
tool
- support exporting Markdown codeblocks in to single zip file in
-
0.3.0:
- Fixed the error in importing libraries of
md_to_pptx
tool when running on self-hosted Dify plugin-daemon service
- Fixed the error in importing libraries of
-
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
- Introducing
-
0.1.x:
- Introducing
md_to_pptx
tool, support PowerPoint.pptx
file format as destination file format
- Introducing
-
0.0.x:
- Published to Dify Marketplace
- support exporting Markdown to DOCX, PPTX, XLSX, PDF, HTML, MD, CSV, JSON, XML, LaTex files
This Dify plugin uses the following open sourced projects:
- md2pptx , MIT License
- mistune, BSD 3-Clause License
- pandas, BSD 3-Clause License
- python-docx, MIT License
- python-pptx, MIT License
- xhtml2pdf, Apache License 2.0
- Apache License 2.0
This plugin collects no data.
All the file transformations are completed locally. NO data is transmitted to third-party services.