Skip to content

bowenliang123/md_exporter

Repository files navigation

Markdown Exporter - Generate files from Mardown

Author: 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
with md2pptx style
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_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)

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.

# 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 → Linked Image files


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

  • 1.2.0:

    • Support compressing images to single zip file in md_to_linked_image tool
  • 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
  • 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
  • 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 in md_to_docx tool, by setting global font to Song if content contains Chinese charactor
  • 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:

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.

About

A Dify tool plugin to export Markdown to DOCX, PPTX, XLSX, PDF, HTML, md files

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages