重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
markdown-exporter by bowenliang123/md_exporter
npx skills add https://github.com/bowenliang123/md_exporter --skill markdown-exporterMarkdown Exporter 是一个 Agent Skill,可将您的 Markdown 文本转换为多种专业格式文件。
此 SKILL.md 用于 Agent Skills,其命令行工具和 Python 包 markdown-exporter 由 bowenliang123 在 GitHub 仓库 bowenliang123/markdown-exporter 中维护。
| 工具 | 输入 (Markdown 文本或样式文件路径) | 输出 (导出文件路径) |
|---|---|---|
md_to_docx | 📝 Markdown 文本 | 📄 Word 文档 (.docx) |
md_to_html | 📝 Markdown 文本 | 🌐 HTML 文件 (.html) |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
md_to_html_text | 📝 Markdown 文本 | 🌐 HTML 文本字符串 |
md_to_pdf | 📝 Markdown 文本 | 📑 PDF 文件 (.pdf) |
md_to_png | 📝 Markdown 文本 | 🖼️ PDF 页面的 PNG 图像 |
md_to_md | 📝 Markdown 文本 | 📝 Markdown 文件 (.md) |
md_to_ipynb | 📝 Markdown 文本 | 📓 Jupyter Notebook (.ipynb) |
md_to_pptx | 📝 Pandoc 风格的 Markdown 幻灯片 | 🎯 PowerPoint (.pptx) |
md_to_xlsx | 📋 Markdown 表格 | 📊 Excel 电子表格 (.xlsx) |
md_to_csv | 📋 Markdown 表格 | 📋 CSV 文件 (.csv) |
md_to_json | 📋 Markdown 表格 | 📦 JSON/JSONL 文件 (.json) |
md_to_xml | 📋 Markdown 表格 | 🏷️ XML 文件 (.xml) |
md_to_latex | 📋 Markdown 表格 | 📝 LaTeX 文件 (.tex) |
md_to_codeblock | 💻 Markdown 中的代码块 | 📁 按语言分类的代码文件 (.py, .js, .sh 等) |
Markdown Exporter 可作为 PyPI 包使用,为其所有功能提供了无缝的命令行界面。
# 使用 pip
pip install md-exporter
# 使用 uv
uv tool install md-exporter
# 在 OpenClaw 上
npx clawhub install markdown-exporter
检查 markdown-exporter 命令及其用法:
markdown-exporter -h
markdown-exporter <subcommand> -h
使用 markdown-exporter 命令访问所有工具:
markdown-exporter <subcommand> <args> [options]
将 Markdown 表格转换为 CSV 格式文件。
用法:
markdown-exporter md_to_csv <input> <output> [options]
参数:
input - 包含表格的输入 Markdown 文件路径output - 输出 CSV 文件路径选项:
--strip-wrapper - 如果存在,则移除代码块包装器示例:
基本转换:
markdown-exporter md_to_csv /path/input.md /path/output.csv
此命令将输入 Markdown 文件中的所有表格转换为 CSV 格式。
移除代码块包装器:
markdown-exporter md_to_csv /path/input.md /path/output.csv --strip-wrapper
此命令在处理 Markdown 之前移除任何代码块包装器 (```)。
示例 Markdown 输入: 使用下方"示例 Markdown 输入 - 基本文本和表格"部分中的"基本文本和表格"示例。
将 Markdown 文本转换为 PDF 格式,支持中文、日文和其他语言。
用法:
markdown-exporter md_to_pdf <input> <output> [options]
参数:
input - 输入 Markdown 文件路径output - 输出 PDF 文件路径选项:
--strip-wrapper - 如果存在,则移除代码块包装器示例:
基本转换:
markdown-exporter md_to_pdf /path/input.md /path/output.pdf
此命令将整个 Markdown 文件转换为 PDF 文档。
移除代码块包装器:
markdown-exporter md_to_pdf /path/input.md /path/output.pdf --strip-wrapper
此命令在处理 Markdown 之前移除任何代码块包装器 (```)。
示例 Markdown 输入: 使用下方"示例 Markdown 输入 - 基本文本和表格"部分中的"基本文本和表格"示例。
将 Markdown 文本转换为 DOCX 格式文件。
用法:
markdown-exporter md_to_docx <input> <output> [options]
参数:
input - 输入 Markdown 文件路径output - 输出 DOCX 文件路径选项:
--template - DOCX 模板文件路径 (可选)--strip-wrapper - 如果存在,则移除代码块包装器示例:
基本转换:
markdown-exporter md_to_docx /path/input.md /path/output.docx
此命令将整个 Markdown 文件转换为 DOCX 文档。
使用自定义模板:
markdown-exporter md_to_docx /path/input.md /path/output.docx --template /path/template.docx
此命令使用自定义 DOCX 模板进行样式设置。
移除代码块包装器:
markdown-exporter md_to_docx /path/input.md /path/output.docx --strip-wrapper
此命令在处理 Markdown 之前移除任何代码块包装器 (```)。
示例 Markdown 输入: 使用下方"示例 Markdown 输入 - 基本文本和表格"部分中的"基本文本和表格"示例。
将 Markdown 表格转换为 XLSX 格式,支持多工作表。
用法:
markdown-exporter md_to_xlsx <input> <output> [options]
参数:
input - 包含表格的输入 Markdown 文件路径output - 输出 XLSX 文件路径选项:
--force-text - 将单元格值转换为文本类型 (默认: True)--strip-wrapper - 如果存在,则移除代码块包装器示例:
基本转换:
markdown-exporter md_to_xlsx /path/input.md /path/output.xlsx
此命令将输入 Markdown 文件中的所有表格转换为 XLSX 工作簿,每个表格位于单独的工作表上。
移除代码块包装器:
markdown-exporter md_to_xlsx /path/input.md /path/output.xlsx --strip-wrapper
此命令在处理 Markdown 之前移除任何代码块包装器 (```)。
禁用强制文本转换:
markdown-exporter md_to_xlsx /path/input.md /path/output.xlsx --force-text False
此命令允许 Excel 自动确定单元格类型。
示例 Markdown 输入: 使用下方"示例 Markdown 输入 - 基本文本和表格"部分中的"基本文本和表格"示例。
将 Markdown 文本转换为 PPTX 格式文件。
用法:
markdown-exporter md_to_pptx <input> <output> [options]
参数:
input - 输入 Markdown 文件路径output - 输出 PPTX 文件路径选项:
--template - PPTX 模板文件路径 (可选)示例:
基本转换:
markdown-exporter md_to_pptx /path/input.md /path/output.pptx
此命令将 Markdown 文件转换为 PowerPoint 演示文稿。
使用自定义模板:
markdown-exporter md_to_pptx /path/input.md /path/output.pptx --template /path/template.pptx
此命令使用自定义 PowerPoint 模板进行样式设置。
示例 Markdown 输入: 使用下方"示例 Markdown 输入 - 幻灯片 (用于 PPTX)"部分中的"幻灯片 (用于 PPTX)"示例。
从 Markdown 中提取代码块并将其保存为单独的文件。
用法:
markdown-exporter md_to_codeblock <input> <output> [options]
参数:
input - 包含代码块的输入 Markdown 文件路径output - 输出目录路径或 ZIP 文件路径选项:
--compress - 将所有代码块压缩到 ZIP 文件中示例:
提取到目录:
markdown-exporter md_to_codeblock /path/input.md /path/output_dir
此命令将所有代码块提取到指定目录中的单独文件。
提取到 ZIP 文件:
markdown-exporter md_to_codeblock /path/input.md /path/output.zip --compress
此命令提取所有代码块并将其压缩到 ZIP 文件中。
示例 Markdown 输入: 使用下方"示例 Markdown 输入 - 代码块"部分中的"代码块"示例。
将 Markdown 表格转换为 JSON 或 JSONL 格式文件。
用法:
markdown-exporter md_to_json <input> <output> [options]
参数:
input - 包含表格的输入 Markdown 文件路径output - 输出 JSON 文件路径选项:
--style - JSON 输出样式: jsonl (默认) 或 json_array--strip-wrapper - 如果存在,则移除代码块包装器示例:
基本转换 (JSONL 格式):
markdown-exporter md_to_json /path/input.md /path/output.json
此命令将表格转换为 JSON Lines 格式 (每行一个 JSON 对象)。
转换为 JSON 数组:
markdown-exporter md_to_json /path/input.md /path/output.json --style json_array
此命令将表格转换为单个 JSON 对象数组。
移除代码块包装器:
markdown-exporter md_to_json /path/input.md /path/output.json --strip-wrapper
此命令在处理 Markdown 之前移除任何代码块包装器 (```)。
示例 Markdown 输入: 使用下方"示例 Markdown 输入 - 基本文本和表格"部分中的"基本文本和表格"示例。
将 Markdown 文本转换为 XML 格式文件。
用法:
markdown-exporter md_to_xml <input> <output> [options]
参数:
input - 输入 Markdown 文件路径output - 输出 XML 文件路径选项:
--strip-wrapper - 如果存在,则移除代码块包装器示例:
基本转换:
markdown-exporter md_to_xml /path/input.md /path/output.xml
此命令将整个 Markdown 文件转换为 XML 文档。
移除代码块包装器:
markdown-exporter md_to_xml /path/input.md /path/output.xml --strip-wrapper
此命令在处理 Markdown 之前移除任何代码块包装器 (```)。
示例 Markdown 输入: 使用下方"示例 Markdown 输入 - 基本文本和表格"部分中的"基本文本和表格"示例。
将 Markdown 表格转换为 LaTeX 格式文件。
用法:
markdown-exporter md_to_latex <input> <output> [options]
参数:
input - 包含表格的输入 Markdown 文件路径output - 输出 LaTeX 文件路径选项:
--strip-wrapper - 如果存在,则移除代码块包装器示例:
基本转换:
markdown-exporter md_to_latex /path/input.md /path/output.tex
此命令将输入 Markdown 文件中的所有表格转换为 LaTeX 格式。
移除代码块包装器:
markdown-exporter md_to_latex /path/input.md /path/output.tex --strip-wrapper
此命令在处理 Markdown 之前移除任何代码块包装器 (```)。
示例 Markdown 输入: 使用下方"示例 Markdown 输入 - 基本文本和表格"部分中的"基本文本和表格"示例。
将 Markdown 文本转换为 HTML 格式文件。
用法:
markdown-exporter md_to_html <input> <output> [options]
参数:
input - 输入 Markdown 文件路径output - 输出 HTML 文件路径选项:
--strip-wrapper - 如果存在,则移除代码块包装器示例:
基本转换:
markdown-exporter md_to_html /path/input.md /path/output.html
此命令将整个 Markdown 文件转换为 HTML 文档。
移除代码块包装器:
markdown-exporter md_to_html /path/input.md /path/output.html --strip-wrapper
此命令在处理 Markdown 之前移除任何代码块包装器 (```)。
示例 Markdown 输入: 使用下方"示例 Markdown 输入 - 基本文本和表格"部分中的"基本文本和表格"示例。
将 Markdown 文本转换为 HTML 并输出到标准输出。
用法:
markdown-exporter md_to_html_text <input>
参数:
input - 输入 Markdown 文件路径示例:
markdown-exporter md_to_html_text /path/input.md
示例 Markdown 输入: 使用下方"示例 Markdown 输入 - 基本文本和表格"部分中的"基本文本和表格"示例。
将 Markdown 文本转换为 PNG 图像 (每页一个)。
用法:
markdown-exporter md_to_png <input> <output> [options]
参数:
input - 输入 Markdown 文件路径output - 输出 PNG 文件路径或目录路径选项:
--compress - 将所有 PNG 图像压缩到 ZIP 文件中--strip-wrapper - 如果存在,则移除代码块包装器示例:
基本转换:
markdown-exporter md_to_png /path/input.md /path/output.png
此命令将 Markdown 文件转换为 PNG 图像 (每页一个)。
使用压缩:
markdown-exporter md_to_png /path/input.md /path/output.png --compress
此命令将 Markdown 文件转换为 PNG 图像并将其压缩到 ZIP 文件中。
移除代码块包装器:
markdown-exporter md_to_png /path/input.md /path/output.png --strip-wrapper
此命令在处理 Markdown 之前移除任何代码块包装器 (```)。
示例 Markdown 输入: 使用下方"示例 Markdown 输入 - 基本文本和表格"部分中的"基本文本和表格"示例。
将 Markdown 文本保存到 .md 文件。
用法:
markdown-exporter md_to_md <input> <output>
参数:
input - 输入 Markdown 文件路径output - 输出 MD 文件路径示例:
markdown-exporter md_to_md /path/input.md /path/output.md
示例 Markdown 输入: 使用下方"示例 Markdown 输入 - 基本文本和表格"部分中的"基本文本和表格"示例。
将 Markdown 文本转换为 Jupyter Notebook (.ipynb) 格式文件。
用法:
markdown-exporter md_to_ipynb <input> <output> [options]
参数:
input - 输入 Markdown 文件路径output - 输出 IPYNB 文件路径选项:
--strip-wrapper - 如果存在,则移除代码块包装器示例:
基本转换:
markdown-exporter md_to_ipynb /path/input.md /path/output.ipynb
此命令将 Markdown 文件转换为 Jupyter Notebook 格式。
移除代码块包装器:
markdown-exporter md_to_ipynb /path/input.md /path/output.ipynb --strip-wrapper
此命令在处理 Markdown 之前移除任何代码块包装器 (```)。
示例 Markdown 输入: 使用下方"示例 Markdown 输入 - 代码块"部分中的"代码块"示例。
为了帮助您测试各种工具,以下是常见的 Markdown 输入示例,代表输入文件的内容:
# 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 Test
```python
print("Hello, World!")
def add(a, b):
return a + b
# Test the function
result = add(5, 3)
print(f"Result: {result}")
```
```bash
# Bash script example
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 选项从输入 Markdown 中移除代码块包装器 (```)每周安装次数
47
仓库
GitHub 星标数
189
首次出现
2026年1月27日
安全审计
安装于
opencode43
codex39
gemini-cli38
github-copilot34
claude-code33
kimi-cli33
Markdown 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:
Basic conversion :
markdown-exporter md_to_csv /path/input.md /path/output.csv
This converts all tables in the input Markdown file to CSV format.
With code block wrapper removal :
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:
Basic conversion :
markdown-exporter md_to_pdf /path/input.md /path/output.pdf
This converts the entire Markdown file to a PDF document.
With code block wrapper removal :
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:
Basic conversion :
markdown-exporter md_to_docx /path/input.md /path/output.docx
This converts the entire Markdown file to a DOCX document.
With custom template :
markdown-exporter md_to_docx /path/input.md /path/output.docx --template /path/template.docx
This uses a custom DOCX template for styling.
With code block wrapper removal :
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:
Basic conversion :
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.
With code block wrapper removal :
markdown-exporter md_to_xlsx /path/input.md /path/output.xlsx --strip-wrapper
This removes any code block wrappers (```) before processing the Markdown.
With force-text disabled :
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:
Basic conversion :
markdown-exporter md_to_pptx /path/input.md /path/output.pptx
This converts the Markdown file to a PowerPoint presentation.
With custom template :
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:
Extract to directory :
markdown-exporter md_to_codeblock /path/input.md /path/output_dir
This extracts all code blocks to individual files in the specified directory.
Extract to ZIP file :
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:
Basic conversion (JSONL format) :
markdown-exporter md_to_json /path/input.md /path/output.json
This converts tables to JSON Lines format (one JSON object per line).
Convert to JSON array :
markdown-exporter md_to_json /path/input.md /path/output.json --style json_array
This converts tables to a single JSON array of objects.
With code block wrapper removal :
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:
Basic conversion :
markdown-exporter md_to_xml /path/input.md /path/output.xml
This converts the entire Markdown file to an XML document.
With code block wrapper removal :
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:
Basic conversion :
markdown-exporter md_to_latex /path/input.md /path/output.tex
This converts all tables in the input Markdown file to LaTeX format.
With code block wrapper removal :
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:
Basic conversion :
markdown-exporter md_to_html /path/input.md /path/output.html
This converts the entire Markdown file to an HTML document.
With code block wrapper removal :
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:
Basic conversion :
markdown-exporter md_to_png /path/input.md /path/output.png
This converts the Markdown file to PNG images (one per page).
With compression :
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.
With code block wrapper removal :
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:
Basic conversion :
markdown-exporter md_to_ipynb /path/input.md /path/output.ipynb
This converts the Markdown file to a Jupyter Notebook format.
With code block wrapper removal :
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 Test
```python
print("Hello, World!")
def add(a, b):
return a + b
# Test the function
result = add(5, 3)
print(f"Result: {result}")
```
```bash
# Bash script example
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 MarkdownWeekly Installs
47
Repository
GitHub Stars
189
First Seen
Jan 27, 2026
Security Audits
Gen Agent Trust HubWarnSocketPassSnykWarn
Installed on
opencode43
codex39
gemini-cli38
github-copilot34
claude-code33
kimi-cli33
LarkSuite Whiteboard CLI 工具:自动化生成专业图表与画板,支持DSL和Mermaid
48,300 周安装