Markdown Exporter 标志

Markdown Exporter

社区
bowenliang123
markdown-exporter

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

概览

发布者bowenliang123
代码仓库markdown-exporter
技能名称markdown-exporter
星标数
274
复刻数
67
附带文件
181
许可协议Apache-2.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 181 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 bowenliang123 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Markdown Exporter AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/bowenliang123/markdown-exporter/tree/main
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/bowenliang123/markdown-exporter.git \
  .claude/skills/markdown-exporter
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Markdown Exporter,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Markdown Exporter。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Markdown Exporter 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Markdown Exporter

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.

Tools and Supported Formats

ToolInput (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_jira📝 Markdown text🅹 Jira wiki markup text
md_to_pdf📝 Markdown text📑 PDF file (.pdf)
md_to_png📝 Markdown text🖼️ PNG image (.png), single long page or one image per page
md_to_svg📝 Markdown text🖼️ SVG image (.svg), one image per page
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.)

📦 Usage

Overview

Markdown Exporter is available as a PyPI package, which provides a seamless command-line interface for all its functionality.

Installation

bash
# 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

Basic Usage

Use the markdown-exporter command to access all the tools:

bash
markdown-exporter <subcommand> <args> [options]

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

🔧 Scripts

md_to_csv - Convert Markdown tables to CSV

Converts Markdown tables to CSV format file.

Usage:

bash
markdown-exporter md_to_csv <input> <output> [options]

Arguments:

  • input - Input Markdown file path containing tables
  • output - Output CSV file path

Options:

  • --strip-wrapper - Remove code block wrapper if present

Examples:

  1. Basic conversion:

    bash
    markdown-exporter md_to_csv /path/input.md /path/output.csv

    This converts all tables in the input Markdown file to CSV format.

  2. With code block wrapper removal:

    bash
    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.


md_to_pdf - Convert Markdown to PDF

Converts Markdown text to PDF format with support for Chinese, Japanese, and other languages.

Usage:

bash
markdown-exporter md_to_pdf <input> <output> [options]

Arguments:

  • input - Input Markdown file path
  • output - Output PDF file path

Options:

  • --strip-wrapper - Remove code block wrapper if present

Examples:

  1. Basic conversion:

    bash
    markdown-exporter md_to_pdf /path/input.md /path/output.pdf

    This converts the entire Markdown file to a PDF document.

  2. With code block wrapper removal:

    bash
    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.


md_to_png - Convert Markdown to PNG

Converts Markdown text to PNG image(s), with support for Chinese, Japanese, and other languages.

Usage:

bash
markdown-exporter md_to_png <input> <output> [options]

Arguments:

  • input - Input Markdown file path
  • output - Output PNG file path

Options:

  • --multi-page - Export one PNG per A4 page (numbered files) instead of a single long-page PNG
  • --strip-wrapper - Remove code block wrapper if present

Examples:

  1. Basic conversion (single long-page image):

    bash
    markdown-exporter md_to_png /path/input.md /path/output.png

    This renders the entire Markdown document as a single long-page PNG image.

  2. Multi-page output:

    bash
    markdown-exporter md_to_png /path/input.md /path/output.png --multi-page

    This exports one PNG per A4 page, saved as output_1.png, output_2.png, etc. when the document has multiple pages.

  3. With code block wrapper removal:

    bash
    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.


md_to_svg - Convert Markdown to SVG

Converts Markdown text to SVG image(s), one SVG per page, with support for Chinese, Japanese, and other languages.

Usage:

bash
markdown-exporter md_to_svg <input> <output> [options]

Arguments:

  • input - Input Markdown file path
  • output - Output SVG file path

Options:

  • --strip-wrapper - Remove code block wrapper if present

Examples:

  1. Basic conversion:

    bash
    markdown-exporter md_to_svg /path/input.md /path/output.svg

    This converts the Markdown file to SVG image(s), saved as output_1.svg, output_2.svg, etc. when the document has multiple pages.

  2. With code block wrapper removal:

    bash
    markdown-exporter md_to_svg /path/input.md /path/output.svg --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.


md_to_docx - Convert Markdown to DOCX

Converts Markdown text to DOCX format file.

Usage:

bash
markdown-exporter md_to_docx <input> <output> [options]

Arguments:

  • input - Input Markdown file path
  • output - Output DOCX file path

Options:

  • --template - Path to DOCX template file (optional)
  • --strip-wrapper - Remove code block wrapper if present

Examples:

  1. Basic conversion:

    bash
    markdown-exporter md_to_docx /path/input.md /path/output.docx

    This converts the entire Markdown file to a DOCX document.

  2. With custom template:

    bash
    markdown-exporter md_to_docx /path/input.md /path/output.docx --template /path/template.docx

    This uses a custom DOCX template for styling.

  3. With code block wrapper removal:

    bash
    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.


md_to_xlsx - Convert Markdown tables to XLSX

Converts Markdown tables to XLSX format with multiple sheets support.

Usage:

bash
markdown-exporter md_to_xlsx <input> <output> [options]

Arguments:

  • input - Input Markdown file path containing tables
  • output - Output XLSX file path

Options:

  • --force-text - Convert cell values to text type (default: True)
  • --strip-wrapper - Remove code block wrapper if present

Examples:

  1. Basic conversion:

    bash
    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.

  2. With code block wrapper removal:

    bash
    markdown-exporter md_to_xlsx /path/input.md /path/output.xlsx --strip-wrapper

    This removes any code block wrappers (```) before processing the Markdown.

  3. With force-text disabled:

    bash
    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.


md_to_pptx - Convert Markdown to PPTX

Converts Markdown text to PPTX format file.

Usage:

bash
markdown-exporter md_to_pptx <input> <output> [options]

Arguments:

  • input - Input Markdown file path
  • output - Output PPTX file path

Options:

  • --template - Path to PPTX template file (optional)

Examples:

  1. Basic conversion:

    bash
    markdown-exporter md_to_pptx /path/input.md /path/output.pptx

    This converts the Markdown file to a PowerPoint presentation.

  2. With custom template:

    bash
    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.


md_to_codeblock - Extract Codeblocks to Files

Extracts code blocks from Markdown and saves them as individual files.

Usage:

bash
markdown-exporter md_to_codeblock <input> <output> [options]

Arguments:

  • input - Input Markdown file path containing code blocks
  • output - Output directory path or ZIP file path

Options:

  • --compress - Compress all code blocks into a ZIP file

Examples:

  1. Extract to directory:

    bash
    markdown-exporter md_to_codeblock /path/input.md /path/output_dir

    This extracts all code blocks to individual files in the specified directory.

  2. Extract to ZIP file:

    bash
    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.


md_to_json - Convert Markdown Tables to JSON

Converts Markdown tables to JSON or JSONL format file.

Usage:

bash
markdown-exporter md_to_json <input> <output> [options]

Arguments:

  • input - Input Markdown file path containing tables
  • output - Output JSON file path

Options:

  • --style - JSON output style: jsonl (default) or json_array
  • --strip-wrapper - Remove code block wrapper if present

Examples:

  1. Basic conversion (JSONL format):

    bash
    markdown-exporter md_to_json /path/input.md /path/output.json

    This converts tables to JSON Lines format (one JSON object per line).

  2. Convert to JSON array:

    bash
    markdown-exporter md_to_json /path/input.md /path/output.json --style json_array

    This converts tables to a single JSON array of objects.

  3. With code block wrapper removal:

    bash
    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.


md_to_xml - Convert Markdown to XML

Converts Markdown text to XML format file.

Usage:

bash
markdown-exporter md_to_xml <input> <output> [options]

Arguments:

  • input - Input Markdown file path
  • output - Output XML file path

Options:

  • --strip-wrapper - Remove code block wrapper if present

Examples:

  1. Basic conversion:

    bash
    markdown-exporter md_to_xml /path/input.md /path/output.xml

    This converts the entire Markdown file to an XML document.

  2. With code block wrapper removal:

    bash
    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.


md_to_latex - Convert Markdown Tables to LaTeX

Converts Markdown tables to LaTeX format file.

Usage:

bash
markdown-exporter md_to_latex <input> <output> [options]

Arguments:

  • input - Input Markdown file path containing tables
  • output - Output LaTeX file path

Options:

  • --strip-wrapper - Remove code block wrapper if present

Examples:

  1. Basic conversion:

    bash
    markdown-exporter md_to_latex /path/input.md /path/output.tex

    This converts all tables in the input Markdown file to LaTeX format.

  2. With code block wrapper removal:

    bash
    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.


md_to_html - Convert Markdown to HTML

Converts Markdown text to HTML format file.

Usage:

bash
markdown-exporter md_to_html <input> <output> [options]

Arguments:

  • input - Input Markdown file path
  • output - Output HTML file path

Options:

  • --strip-wrapper - Remove code block wrapper if present

Examples:

  1. Basic conversion:

    bash
    markdown-exporter md_to_html /path/input.md /path/output.html

    This converts the entire Markdown file to an HTML document.

  2. With code block wrapper removal:

    bash
    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.


md_to_html_text - Convert Markdown to HTML Text

Converts Markdown text to HTML and outputs to stdout.

Usage:

bash
markdown-exporter md_to_html_text <input>

Arguments:

  • input - Input Markdown file path

Example:

bash
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.


md_to_jira - Convert Markdown to Jira Wiki Markup

Converts Markdown text to Jira wiki markup and outputs to stdout.

Usage:

bash
markdown-exporter md_to_jira <input>

Arguments:

  • input - Input Markdown file path

Example:

bash
markdown-exporter md_to_jira /path/input.md

Sample Markdown Input: Use the "Basic Text and Tables" example from the Sample Markdown Inputs - Basic Text and Tables section below.


md_to_md - Convert Markdown to MD File

Saves Markdown text to a .md file.

Usage:

bash
markdown-exporter md_to_md <input> <output>

Arguments:

  • input - Input Markdown file path
  • output - Output MD file path

Example:

bash
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.


md_to_ipynb - Convert Markdown to IPYNB

Converts Markdown text to Jupyter Notebook (.ipynb) format file.

Usage:

bash
markdown-exporter md_to_ipynb <input> <output> [options]

Arguments:

  • input - Input Markdown file path
  • output - Output IPYNB file path

Options:

  • --strip-wrapper - Remove code block wrapper if present

Examples:

  1. Basic conversion:

    bash
    markdown-exporter md_to_ipynb /path/input.md /path/output.ipynb

    This converts the Markdown file to a Jupyter Notebook format.

  2. With code block wrapper removal:

    bash
    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.

Sample Markdown Inputs

To help you test the various tools, below are common Markdown input examples that represent the content of input files:

Basic Text and Tables
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.
Code Blocks
markdown
# 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;
}
```
Slides (for PPTX)
markdown
---
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:

![Test Image](https://example.com/image.jpg)
:::
::: column
- This triggers the "Comparison" layout
- Useful for side-by-side comparisons
:::
:::::

## Content with Caption

Here's some explanatory text about the image below.

![Test Image](https://example.com/image.jpg "fig:Test Image")

---

# 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.
:::

📝 Notes

  • All scripts only support file paths as input
  • For scripts that generate multiple files (e.g., multiple tables, multiple code blocks), the output filename will be automatically numbered
  • Use the --strip-wrapper option to remove code block wrappers (```) from the input Markdown

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

还有 121 个文件。

常见问题

Markdown Exporter AI 技能有什么作用?

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

为什么在 TypingMind 中使用 Markdown Exporter?

因为您只需安装一次,就能搭配任何模型使用。Markdown Exporter 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Markdown Exporter?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/bowenliang123/markdown-exporter/tree/main。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Markdown Exporter?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Markdown Exporter 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Markdown Exporter 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Markdown Exporter AI 技能免费吗?

是的。bowenliang123 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇