markdown-exporterConvert Markdown text to DOCX, PPTX, XLSX, PDF, PNG, HTML, IPYNB, MD, CSV, JSON, JSONL, XML files, and extract code blocks in Markdown to Python, Bash,JS and...
Install via ClawdBot CLI:
clawdbot install bowenliang123/markdown-exporterMarkdown Exporter is an Agent Skill that transforms your Markdown text into a wide variety of professional format files.
This SKILL.md for Agent Skills, the cli tool and Python package markdown-exporter are maintained in the GitHub repository bowenliang123/markdown-exporter by bowenliang123.
| Tool | Input (File path of Markdown text or styles) | Output (File path of exported file) |
|------|-------|--------|
| md_to_docx | ๐ Markdown text | ๐ Word document (.docx) |
| md_to_html | ๐ Markdown text | ๐ HTML file (.html) |
| md_to_html_text | ๐ Markdown text | ๐ HTML text string |
| md_to_pdf | ๐ Markdown text | ๐ PDF file (.pdf) |
| md_to_png | ๐ Markdown text | ๐ผ๏ธ PNG image(s) of PDF pages |
| md_to_md | ๐ Markdown text | ๐ Markdown file (.md) |
| md_to_ipynb | ๐ Markdown text | ๐ Jupyter Notebook (.ipynb) |
| md_to_pptx | ๐ Markdown slides in Pandoc style | ๐ฏ PowerPoint (.pptx) |
| md_to_xlsx | ๐ Markdown tables | ๐ Excel spreadsheet (.xlsx) |
| md_to_csv | ๐ Markdown tables | ๐ CSV file (.csv) |
| md_to_json | ๐ Markdown tables | ๐ฆ JSON/JSONL file (.json) |
| md_to_xml | ๐ Markdown tables | ๐ท๏ธ XML file (.xml) |
| md_to_latex | ๐ Markdown tables | ๐ LaTeX file (.tex) |
| md_to_codeblock | ๐ป Code blocks in Markdown | ๐ Code files by language (.py, .js, .sh, etc.) |
Markdown Exporter is available as a PyPI package, which provides a seamless command-line interface for all its functionality.
# with pip
pip install md-exporter
# with uv
uv tool install md-exporter
# on OpenClaw
npx clawhub install markdown-exporter
Check markdown-exporter command and usages:
markdown-exporter -h
markdown-exporter <subcommand> -h
Use the markdown-exporter command to access all the tools:
markdown-exporter <subcommand> <args> [options]
Converts Markdown tables to CSV format file.
Usage:
markdown-exporter md_to_csv <input> <output> [options]
Arguments:
input - Input Markdown file path containing tablesoutput - Output CSV file pathOptions:
--strip-wrapper - Remove code block wrapper if presentExamples:
markdown-exporter md_to_csv /path/input.md /path/output.csv
This converts all tables in the input Markdown file to CSV format.
markdown-exporter md_to_csv /path/input.md /path/output.csv --strip-wrapper
This removes any code block wrappers (```) before processing the Markdown.
Sample Markdown Input:
Use the "Basic Text and Tables" example from the Sample Markdown Inputs - Basic Text and Tables section below.
Converts Markdown text to PDF format with support for Chinese, Japanese, and other languages.
Usage:
markdown-exporter md_to_pdf <input> <output> [options]
Arguments:
input - Input Markdown file pathoutput - Output PDF file pathOptions:
--strip-wrapper - Remove code block wrapper if presentExamples:
markdown-exporter md_to_pdf /path/input.md /path/output.pdf
This converts the entire Markdown file to a PDF document.
markdown-exporter md_to_pdf /path/input.md /path/output.pdf --strip-wrapper
This removes any code block wrappers (```) before processing the Markdown.
Sample Markdown Input:
Use the "Basic Text and Tables" example from the Sample Markdown Inputs - Basic Text and Tables section below.
Converts Markdown text to DOCX format file.
Usage:
markdown-exporter md_to_docx <input> <output> [options]
Arguments:
input - Input Markdown file pathoutput - Output DOCX file pathOptions:
--template - Path to DOCX template file (optional)--strip-wrapper - Remove code block wrapper if presentExamples:
markdown-exporter md_to_docx /path/input.md /path/output.docx
This converts the entire Markdown file to a DOCX document.
markdown-exporter md_to_docx /path/input.md /path/output.docx --template /path/template.docx
This uses a custom DOCX template for styling.
markdown-exporter md_to_docx /path/input.md /path/output.docx --strip-wrapper
This removes any code block wrappers (```) before processing the Markdown.
Sample Markdown Input:
Use the "Basic Text and Tables" example from the Sample Markdown Inputs - Basic Text and Tables section below.
Converts Markdown tables to XLSX format with multiple sheets support.
Usage:
markdown-exporter md_to_xlsx <input> <output> [options]
Arguments:
input - Input Markdown file path containing tablesoutput - Output XLSX file pathOptions:
--force-text - Convert cell values to text type (default: True)--strip-wrapper - Remove code block wrapper if presentExamples:
markdown-exporter md_to_xlsx /path/input.md /path/output.xlsx
This converts all tables in the input Markdown file to an XLSX workbook, with each table on a separate sheet.
markdown-exporter md_to_xlsx /path/input.md /path/output.xlsx --strip-wrapper
This removes any code block wrappers (```) before processing the Markdown.
markdown-exporter md_to_xlsx /path/input.md /path/output.xlsx --force-text False
This allows Excel to automatically determine cell types.
Sample Markdown Input:
Use the "Basic Text and Tables" example from the Sample Markdown Inputs - Basic Text and Tables section below.
Converts Markdown text to PPTX format file.
Usage:
markdown-exporter md_to_pptx <input> <output> [options]
Arguments:
input - Input Markdown file pathoutput - Output PPTX file pathOptions:
--template - Path to PPTX template file (optional)Examples:
markdown-exporter md_to_pptx /path/input.md /path/output.pptx
This converts the Markdown file to a PowerPoint presentation.
markdown-exporter md_to_pptx /path/input.md /path/output.pptx --template /path/template.pptx
This uses a custom PowerPoint template for styling.
Sample Markdown Input:
Use the "Slides (for PPTX)" example from the Sample Markdown Inputs - Slides (for PPTX) section below.
Extracts code blocks from Markdown and saves them as individual files.
Usage:
markdown-exporter md_to_codeblock <input> <output> [options]
Arguments:
input - Input Markdown file path containing code blocksoutput - Output directory path or ZIP file pathOptions:
--compress - Compress all code blocks into a ZIP fileExamples:
markdown-exporter md_to_codeblock /path/input.md /path/output_dir
This extracts all code blocks to individual files in the specified directory.
markdown-exporter md_to_codeblock /path/input.md /path/output.zip --compress
This extracts all code blocks and compresses them into a ZIP file.
Sample Markdown Input:
Use the "Code Blocks" example from the Sample Markdown Inputs - Code Blocks section below.
Converts Markdown tables to JSON or JSONL format file.
Usage:
markdown-exporter md_to_json <input> <output> [options]
Arguments:
input - Input Markdown file path containing tablesoutput - Output JSON file pathOptions:
--style - JSON output style: jsonl (default) or json_array--strip-wrapper - Remove code block wrapper if presentExamples:
markdown-exporter md_to_json /path/input.md /path/output.json
This converts tables to JSON Lines format (one JSON object per line).
markdown-exporter md_to_json /path/input.md /path/output.json --style json_array
This converts tables to a single JSON array of objects.
markdown-exporter md_to_json /path/input.md /path/output.json --strip-wrapper
This removes any code block wrappers (```) before processing the Markdown.
Sample Markdown Input:
Use the "Basic Text and Tables" example from the Sample Markdown Inputs - Basic Text and Tables section below.
Converts Markdown text to XML format file.
Usage:
markdown-exporter md_to_xml <input> <output> [options]
Arguments:
input - Input Markdown file pathoutput - Output XML file pathOptions:
--strip-wrapper - Remove code block wrapper if presentExamples:
markdown-exporter md_to_xml /path/input.md /path/output.xml
This converts the entire Markdown file to an XML document.
markdown-exporter md_to_xml /path/input.md /path/output.xml --strip-wrapper
This removes any code block wrappers (```) before processing the Markdown.
Sample Markdown Input:
Use the "Basic Text and Tables" example from the Sample Markdown Inputs - Basic Text and Tables section below.
Converts Markdown tables to LaTeX format file.
Usage:
markdown-exporter md_to_latex <input> <output> [options]
Arguments:
input - Input Markdown file path containing tablesoutput - Output LaTeX file pathOptions:
--strip-wrapper - Remove code block wrapper if presentExamples:
markdown-exporter md_to_latex /path/input.md /path/output.tex
This converts all tables in the input Markdown file to LaTeX format.
markdown-exporter md_to_latex /path/input.md /path/output.tex --strip-wrapper
This removes any code block wrappers (```) before processing the Markdown.
Sample Markdown Input:
Use the "Basic Text and Tables" example from the Sample Markdown Inputs - Basic Text and Tables section below.
Converts Markdown text to HTML format file.
Usage:
markdown-exporter md_to_html <input> <output> [options]
Arguments:
input - Input Markdown file pathoutput - Output HTML file pathOptions:
--strip-wrapper - Remove code block wrapper if presentExamples:
markdown-exporter md_to_html /path/input.md /path/output.html
This converts the entire Markdown file to an HTML document.
markdown-exporter md_to_html /path/input.md /path/output.html --strip-wrapper
This removes any code block wrappers (```) before processing the Markdown.
Sample Markdown Input:
Use the "Basic Text and Tables" example from the Sample Markdown Inputs - Basic Text and Tables section below.
Converts Markdown text to HTML and outputs to stdout.
Usage:
markdown-exporter md_to_html_text <input>
Arguments:
input - Input Markdown file pathExample:
markdown-exporter md_to_html_text /path/input.md
Sample Markdown Input:
Use the "Basic Text and Tables" example from the Sample Markdown Inputs - Basic Text and Tables section below.
Converts Markdown text to PNG images (one per page).
Usage:
markdown-exporter md_to_png <input> <output> [options]
Arguments:
input - Input Markdown file pathoutput - Output PNG file path or directory pathOptions:
--compress - Compress all PNG images into a ZIP file--strip-wrapper - Remove code block wrapper if presentExamples:
markdown-exporter md_to_png /path/input.md /path/output.png
This converts the Markdown file to PNG images (one per page).
markdown-exporter md_to_png /path/input.md /path/output.png --compress
This converts the Markdown file to PNG images and compresses them into a ZIP file.
markdown-exporter md_to_png /path/input.md /path/output.png --strip-wrapper
This removes any code block wrappers (```) before processing the Markdown.
Sample Markdown Input:
Use the "Basic Text and Tables" example from the Sample Markdown Inputs - Basic Text and Tables section below.
Saves Markdown text to a .md file.
Usage:
markdown-exporter md_to_md <input> <output>
Arguments:
input - Input Markdown file pathoutput - Output MD file pathExample:
markdown-exporter md_to_md /path/input.md /path/output.md
Sample Markdown Input:
Use the "Basic Text and Tables" example from the Sample Markdown Inputs - Basic Text and Tables section below.
Converts Markdown text to Jupyter Notebook (.ipynb) format file.
Usage:
markdown-exporter md_to_ipynb <input> <output> [options]
Arguments:
input - Input Markdown file pathoutput - Output IPYNB file pathOptions:
--strip-wrapper - Remove code block wrapper if presentExamples:
markdown-exporter md_to_ipynb /path/input.md /path/output.ipynb
This converts the Markdown file to a Jupyter Notebook format.
markdown-exporter md_to_ipynb /path/input.md /path/output.ipynb --strip-wrapper
This removes any code block wrappers (```) before processing the Markdown.
Sample Markdown Input:
Use the "Code Blocks" example from the Sample Markdown Inputs - Code Blocks section below.
To help you test the various tools, below are common Markdown input examples that represent the content of input files:
# Test Markdown File
This is a test markdown file for testing various export tools.
## Table Test
| Name | Description | Price |
|------|-------------|-------|
| Item 1 | First item | $10 |
| Item 2 | Second item | $20 |
| Item 3 | Third item | $30 |
## Text Test
This is a paragraph with **bold** and *italic* text.
- List item 1
- List item 2
- List item 3
> This is a blockquote.
`
# Test Markdown File
## Code Block Testpython
print("Hello, World!")
def add(a, b):
return a + b
result = add(5, 3)
print(f"Result: {result}")
bash
echo "Hello from Bash"
ls -la
javascript
// JavaScript example
console.log("Hello from JavaScript");
function multiply(a, b) {
return a * b;
}
`
`
---
title: Markdown Exporter
author: Bowen Liang
---
# Introduction
## Welcome Slide
Welcome to our Markdown Exporter!
::: notes
Remember to greet the audience warmly.
:::
---
# Section 1: Basic Layouts
## Title and Content
- This is a basic slide with bullet points
- It uses the "Title and Content" layout
- Perfect for simple content presentation
## Two Column Layout
::::: columns
::: column
Left column content:
- Point 1
- Point 2
:::
::: column
Right column content:
- Point A
- Point B
:::
:::::
## Comparison Layout
::::: columns
::: column
Text followed by an image:

:::
::: column
- This triggers the "Comparison" layout
- Useful for side-by-side comparisons
:::
:::::
## Content with Caption
Here's some explanatory text about the image below.

---
# Section 2: Advanced Features
## Code Block
Here's a Python code block:python
def greet(name):
return f"Hello, {name}!"
print(greet("World"))
## Table Example
| Column 1 | Column 2 | Column 3 |
|----------|----------|----------|
| Row 1 | Data | More |
| Row 2 | Info | Stuff |
## Incremental List
::: incremental
- This point appears first
- Then this one
- And finally this one
:::
## {background-image="https://example.com/image.jpg"}
::: notes
This is a slide with a background image and speaker notes only.
The "Blank" layout will be used.
:::
# Conclusion
## Thank You
Thank you for viewing this kitchen sink presentation!
::: notes
Remember to thank the audience and invite questions.
:::`
--strip-wrapper option to remove code block wrappers (```) from the input MarkdownGenerated Mar 1, 2026
Software development teams can automate the creation of API documentation, user manuals, and release notes from Markdown sources. This ensures consistency across formats like PDF for distribution, DOCX for editing, and HTML for web deployment, saving time on manual conversions.
Researchers and academics can convert Markdown-based drafts into polished reports in DOCX or PDF formats, while extracting data tables to XLSX or CSV for analysis. This streamlines the publication process and maintains data integrity across different file types.
Marketing teams can transform Markdown content into multiple formats such as HTML for websites, PNG for social media snippets, and PPTX for presentations. This allows for efficient repurposing of blog posts or articles across various channels without manual reformatting.
Data scientists can use this skill to convert Markdown tables into JSON, CSV, or XLSX files for further processing in analytics tools, while also generating Jupyter notebooks (IPYNB) from documentation. This integrates documentation with data pipelines seamlessly.
Development teams can extract code blocks from Markdown files into separate Python, Bash, or JS files, facilitating code reuse and organization. Simultaneously, they can generate PDF or DOCX versions of documentation for team sharing or client deliverables.
Offer a free tier with basic conversions (e.g., MD to PDF) and charge for advanced features like batch processing, custom templates, or API access. This attracts individual users and small teams while monetizing enterprise needs.
Sell licenses to large organizations for internal use, including support, customization, and integration with existing systems like CMS or version control. This targets companies needing high-volume, secure document conversion workflows.
Provide a cloud-based API that developers can integrate into their applications for on-demand Markdown conversions. Charge based on usage tiers (e.g., number of conversions per month) and offer scalability for high-demand scenarios.
๐ฌ Integration Tip
Install via pip or uv for quick setup, and ensure the markdown-exporter binary is in your system PATH to run commands from any directory without project navigation.
Edit PDFs with natural-language instructions using the nano-pdf CLI.
Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.
Convert documents and files to Markdown using markitdown. Use when converting PDF, Word (.docx), PowerPoint (.pptx), Excel (.xlsx, .xls), HTML, CSV, JSON, XML, images (with EXIF/OCR), audio (with transcription), ZIP archives, YouTube URLs, or EPubs to Markdown format for LLM processing or text analysis.
็จ MinerU API ่งฃๆ PDF/Word/PPT/ๅพ็ไธบ Markdown๏ผๆฏๆๅ ฌๅผใ่กจๆ ผใOCRใ้็จไบ่ฎบๆ่งฃๆใๆๆกฃๆๅใ
Generate hand-drawn style diagrams, flowcharts, and architecture diagrams as PNG images from Excalidraw JSON
The awesome PPT format generation tool provided by baidu.