app icon
Markdown Exporter
3.6.9

Export Markdown to DOCX, PPTX, XLSX, PDF, PNG, HTML, IPYNB, CSV, JSON, JSONL, XML files, and extract code blocks to Python, Bash, JS and etc files.

bowenliang123/md_exporter122044 installs

Markdown Exporter

An Agent Skill and Dify plugin to Export Markdown Into Powerful Documents

Markdown Exporter can be used as:

Use AsPlatforms & Installation
Dify PluginPlatform: Dify
Installation:
- Install from Dify Marketplace
Agent SkillsPlatforms: Any platform supporting Agent Skills
- IDEs/CLIs: Claude Code, Trae, Codebuddy, etc.
- Agent Frameworks: LangChain DeepAgents, AgentScope, etc.

Installation:
- Local Import: Download and import source code zip
- Remote Install: in agent CLIs
OpenClaw Skills 🦞Platform: OpenClaw
- Install from ClawHub:
Command Line Interface (CLI)Platform: Python
- Install from PyPI:
- Run: for usage information

✨ What is Markdown Exporter?

Markdown Exporter is a powerful toolset as an Agent Skill or a Dify plugin that transforms your Markdown text into a wide variety of professional formats. Whether you need to create polished reports, stunning presentations, organized spreadsheets, or code files—this tool has you covered.

With support for 15+ output formats, Markdown Exporter bridges the gap between simple text editing and professional document creation, all while maintaining the simplicity and elegance of Markdown syntax.

🎯 Why You'll Love It

  • 🚀 Lightning Fast – Export your Markdown to multiple formats in milliseconds
  • 🎨 Customizable – Use custom templates for DOCX and PPTX to match your brand
  • 🔒 100% Private – All processing happens locally, no data ever leaves your environment
  • 📊 Versatile – From documents to spreadsheets, presentations to code files
  • 🌐 Multi-Language Support – Perfect for international teams and content

🛠️ Introduction and Use Guide

Tools and Supported Formats

ToolInputOutput
📝 Markdown text📄 Word document (.docx)
🌐 HTML file (.html)
🌐 HTML text string
📑 PDF file (.pdf)
🖼️ PNG image(s) of PDF pages
📝 Markdown file (.md)
📓 Jupyter Notebook (.ipynb)
📝 Markdown slides
🎯 PowerPoint (.pptx)
📋 Markdown tables 📊 Excel spreadsheet (.xlsx)
📋 CSV file (.csv)
📦 JSON/JSONL file (.json)
🏷️ XML file (.xml)
📝 LaTeX file (.tex)
💻 Code blocks in Markdown 📁 Code files by language (.py, .js, .sh, etc.)

📖 Usage as Dify Plugin

Simply input your Markdown text, select your desired output format, and click export. It's that easy!


🎨 Dify Tools Usages

📄 Markdown → DOCX

Create professional Word documents with beautiful formatting.

✨ Pro Tip: Custom Styling with Templates

The tool supports custom DOCX template files, giving you full control over your document's appearance.

What you can customize:

  • Heading styles (fonts, sizes, colors)
  • Paragraph formatting (spacing, indentation)
  • Table styles and borders
  • List styles and bullets
  • And much more!

Check out the default docx template or create your own. Learn how at Customize or create new styles.


📊 Markdown → XLSX

Convert your Markdown tables into polished Excel spreadsheets with auto-fitted columns and preserved data types.

Input:

Output:


🎯 Markdown → PPTX

Turn your Markdown into stunning PowerPoint presentations automatically.

✨ Syntax Requirements

Supported Features:

  • ✅ Title slides

  • ✅ Column Layout

  • ✅ Tables

  • ✅ Hyperlinks

  • ✅ And more!

🎨 Custom Templates:

Use custom PPTX templates with slide masters to match your brand's visual identity. Learn how. Get the default pptx template.

The input Markdown must follow the syntax and guidance in Pandoc Slide Shows.

Input Example:

Output:


🌐 Markdown → HTML

Transform your Markdown into clean, semantic HTML perfect for web pages.


📑 Markdown → PDF

Generate professional PDF documents perfect for printing or sharing.


🖼️ Markdown → PNG

Convert your Markdown into beautiful PNG images. Great for:

  • Social media posts
  • Documentation screenshots
  • Quick sharing in chat apps

🏷️ Markdown → Jupyter Notebook

Transform your Markdown into Jupyter Notebook format.

Input Example:

Output File:


💻 Markdown → Code Block Files

Effortlessly extract code blocks from your Markdown and save them as individual files, preserving syntax highlighting and formatting.

Supported Languages & File Extensions

LanguageFile ExtensionLanguageFile Extension
PythonCSS
JavaScriptYAML
HTMLRuby
BashJava
JSONPHP
XMLMarkdown
SVG

Pro Tip: Enable compression to bundle all extracted files into a single ZIP archive for easy sharing and organization!


📋 Markdown → CSV

Export your Markdown tables to universal CSV format.


📦 Markdown → JSON / JSONL

Convert your tables into structured data formats.

JSONL Style (default)

  • One JSON object per line
  • Perfect for streaming and logging

JSON Array Style

  • All objects in a single array
  • Ideal for API responses

🏷️ Markdown → XML

Transform your data into XML format.


📝 Markdown → LaTeX

Generate LaTeX source code for academic and technical documents.

LaTeX Output:

Compiled PDF:


📝 Markdown → Markdown

Save your Markdown content as a file for future use.


Command Line Interface (CLI) Usage

Markdown Exporter provides a powerful command-line interface that allows you to access all its functionality directly from your terminal.

Installation

Basic Usage

Use the command to access all the tools:

Tool Usage Guide

md_to_csv - Convert Markdown tables to CSV

  • Arguments: (Markdown file path), (CSV file path)
  • Options: (Remove code block wrapper if present)

md_to_pdf - Convert Markdown to PDF

  • Arguments: (Markdown file path), (PDF file path)
  • Options: (Remove code block wrapper if present)

md_to_docx - Convert Markdown to DOCX

  • Arguments: (Markdown file path), (DOCX file path)
  • Options: (Path to DOCX template file), (Remove code block wrapper if present)

md_to_xlsx - Convert Markdown tables to XLSX

  • Arguments: (Markdown file path), (XLSX file path)
  • Options: (Convert cell values to text type), (Remove code block wrapper if present)

md_to_pptx - Convert Markdown to PPTX

  • Arguments: (Markdown file path), (PPTX file path)
  • Options: (Path to PPTX template file)

md_to_codeblock - Extract Codeblocks to Files

  • Arguments: (Markdown file path), (Output directory or ZIP file path)
  • Options: (Compress all code blocks into a ZIP file)

md_to_json - Convert Markdown Tables to JSON

  • Arguments: (Markdown file path), (JSON file path)
  • Options: (JSON output style: jsonl or json_array), (Remove code block wrapper if present)

md_to_xml - Convert Markdown to XML

  • Arguments: (Markdown file path), (XML file path)
  • Options: (Remove code block wrapper if present)

md_to_latex - Convert Markdown Tables to LaTeX

  • Arguments: (Markdown file path), (LaTeX file path)
  • Options: (Remove code block wrapper if present)

md_to_html - Convert Markdown to HTML

  • Arguments: (Markdown file path), (HTML file path)
  • Options: (Remove code block wrapper if present)

md_to_html_text - Convert Markdown to HTML Text

  • Arguments: (Markdown file path)

md_to_png - Convert Markdown to PNG Images

  • Arguments: (Markdown file path), (PNG file or directory path)
  • Options: (Compress all PNG images into a ZIP file), (Remove code block wrapper if present)

md_to_md - Convert Markdown to MD File

  • Arguments: (Markdown file path), (MD file path)

md_to_ipynb - Convert Markdown to IPYNB

  • Arguments: (Markdown file path), (IPYNB file path)
  • Options: (Remove code block wrapper if present)

Important Notes

  • All commands only support file paths as input
  • The package handles all dependency management automatically
  • You can run the command from anywhere in your system, no need to navigate to the project directory
  • Use for detailed help on each subcommand

📢 Releases

Releases are available at:

Changelog

  • 3.6.9

    • Reduced the packaged Dify plugin file size by 95% by removing the screenshot images for README docs.
  • 3.6.7

    • Fixed path error issue for docx and pptx template files in Python distribution package
  • 3.6.6

    • Refactor code structure to ensure Agent Skill, Dify plugin and CLI properly share the core file transformation logic
    • Make project installable and usable on OpenClaw as Agent Skill 🦞
    • Refactor Python packaging to make as standalone CLI tool with Python package installed
    • Remove tool
  • 3.6.0

    • Improve conversion success rate in , , and tools by removing enforcement of spaces and blank lines in heading headers
    • Speed up first call on pandoc by running the warm-up method
  • 3.5.1

    • Correctly handle code cells by pre-processing markdown input in tool
  • 3.5.0

    • Introduce tool for converting Markdown text to Jupyter Notebook (.ipynb) format
    • The tool automatically splits markdown content into separate notebook cells
    • Update logo icon (for the very first time)
  • 3.4.0

    • [BREAKING CHANGE] Migrate tool to use for conversion for stable features and reduced dependency footprint
    • The Markdown input for tool now must follow the markdown syntax and guidance in Pandoc slides
  • 3.3.0

    • Update from 6.1.1 to 6.2.1
    • Remove tool to reduce installation time and footprint by eliminating Node.js runtime dependency
  • 3.2.0

    • Introduce tool for converting Mermaid diagram code blocks in Markdown to PNG images
    • Refactor Agent Skill scripts and entry shell scripts
  • 3.0.0

    • is now ready for Agent Skills and runnable as standalone
      • Add for Agent Skills description
      • Add for code scripts of all tools as Agent Skills execution entry
      • Extract core file transformation logic into shared by both Agent Skills scripts and Dify Plugin
      • Add as Python project description and dependency management
    • Add automated tests covering all usage of Claude Skills scripts entry points
    • Bump from 6.1 to 6.1.1 for table caption bug fix
  • 2.3.0

    • Resolve XLSX generation issue by skipping irrelevant characters before first table in tool
  • 2.2.0

    • Fix CI problems in GitHub Actions
  • 2.1.0

    • Fix remote image fetching in tool by updating to 6.1
    • Fix missing table border in tool by updating default DOCX template file
    • Intercept macro usage in tool
  • 2.0.0

    • [BREAKING CHANGE] Migrate tool to use for conversion
    • Major improvements in tool:
      • Support custom styling using a template DOCX file, allowing font, font size, and color style customization for headings, paragraphs, etc.
      • Optimize file size in generated DOCX files
      • Better support for multi-language content
    • Remove and tools
    • Add option in tool to control whether to force convert all cell values to text strings
  • 1.12.0

    • Fix optional PPTX template file handling in tool
    • Fix error message with file path in command assembly in tool
    • Bump to 6.0
  • 1.10.2

    • Bump from 5.4.4 to 5.4.5
    • Bump from 1.1 to 1.2.0
    • Increase PDF generation capacity limit to 500MB
  • 1.10.0

    • Support JSONL output style in tool, using JSON Lines format with one object per line
    • Change default output style of tool to JSONL
    • Minor documentation updates in parameter descriptions
  • 1.9.0

    • Support custom sheet names in tool using headings in Markdown text
    • Force convert column types to string in tool to prevent data precision loss and display issues in Microsoft Excel
    • Autofit column width in tool
  • 1.8.0

    • Resolve garbled character issues when opening CSV files containing non-ASCII characters (e.g., Chinese, Japanese, emoji characters) in Microsoft Excel
  • 1.7.0

    • Support custom PPTX template files in tool
    • Support file generation from multiple tables in , , and tools
  • 1.6.0

    • Introduce tool for converting Markdown text to HTML text
    • Standardize fonts for headings and body paragraphs in DOCX files generated by tool
  • 1.5.0

    • Improve PDF display for pure English markdown text input in tool by skipping font settings for CJK characters
    • Introduce tool for converting Markdown text to EPUB eBook files
    • Support compressing all PNG files into a single zip file in tool
    • Increase capacity limit for PDF files to 100MB in tool
    • Remove explicit timeout configuration MAX_REQUEST_TIMEOUT
  • 1.4.100

    • Special version celebrating Dify's 100k GitHub stars milestone
    • Add tool for converting Markdown text to PNG image files
  • 1.3.0

    • Update SDK version
  • 1.2.0

    • Support compressing images into a single zip file in tool
  • 1.1.0

    • Enable line breaks normalization in all tools by default, replacing all occurrences of with
    • Remove tags of reasoning content in input Markdown text
    • Fix missing custom output filename support in , , and tools
  • 1.0.1

    • Remove redundant URL-safe conversion in custom output filenames
  • 1.0.0

    • Support custom output filenames
  • 0.5.0

    • Introduce tool for extracting image files from links in Markdown text
  • 0.4.3

    • Improve Chinese character display in text paragraphs in tool by setting global font to Song if content contains Chinese characters
  • 0.4.2

    • Support Java, PHP, and Ruby file exporting in tool
  • 0.4.1

    • Support YAML file exporting in tool
  • 0.4.0

    • Support exporting Markdown codeblocks into a single zip file in tool
  • 0.3.0

    • Fix library import error in tool when running on self-hosted Dify plugin-daemon service
  • 0.2.0

    • Introduce tool for extracting code blocks in Markdown to Python, JSON, JS, BASH, SVG, HTML, XML, and MARKDOWN files
    • Introduce tool for converting Markdown to reStructuredText (.rst) format
  • 0.1.x

    • Introduce tool for converting Markdown to PowerPoint (.pptx) format
  • 0.0.x

    • Publish to Dify Marketplace
    • Support exporting Markdown to DOCX, PPTX, XLSX, PDF, HTML, MD, CSV, JSON, XML, and LaTeX files

🤝 Contributing

Contributions are welcome! Please feel free to submit issues or pull requests on our GitHub repository.

Code Style

We use to ensure code consistency. Run the following command to automatically fix code style issues:

Or use the provided script:


📜 License

This project is licensed under the Apache License 2.0.


🔒 Privacy

Privacy matters. See the Privacy Policy for more details. This plugin:

  • Collects NO data
  • Processes everything locally
  • Sends NO information to third-party services

All file transformations happen entirely within the local environment.


🙏 Acknowledgments

This project stands on the shoulders of giants. We're grateful to these amazing open-source projects:

ProjectLicense
pypandocMIT License
pandasBSD 3-Clause License
xhtml2pdfApache License 2.0
CATEGORY
Tool
TAGS
UTILITIES
VERSION
3.6.9
bowenliang123·02/25/2026 04:43 AM
REQUIREMENTS
Tool invocation
Maximum memory
512MB