Skip to content
Back to search

markdown-exporter

An Agent Skill and Dify plugin to transform Markdown to files of DOCX, PPTX, XLSX, PNG, PDF, HTML, MD, CSV, JSON, XML.

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/bowenliang123--markdown-exporter/badge.svg)](/listings/bowenliang123--markdown-exporter)

HTML

<a href="/listings/bowenliang123--markdown-exporter"><img src="/api/listings/bowenliang123--markdown-exporter/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

# with pip
pip install md-exporter

# with uv
uv tool install md-exporter

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

.claude-plugin/marketplace.json · Manifest · 19 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. {
  2. "name": "md-exporter-plugins",
  3. "owner": {
  4. "name": "bowenliang123",
  5. "email":"liang.bowen.123@qq.com",
  6. "url": "https://github.com/bowenliang123"
  7. },
  8. "plugins": [
  9. {
  10. "name": "markdown-exporter",
  11. "source": "./",
  12. "description": "Transform Markdown text to DOCX, PPTX, XLSX, PDF, PNG, HTML, MD, CSV, JSON, JSONL, XML files, and extract code blocks in Markdown to Python, Bash,JS and etc files.",
  13. "version": "3.0.0",
  14. "author": {
  15. "name": "bowenliang123"
  16. }
  17. }
  18. ]
  19. }
README.md · README · 834 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. <div align="center">
  2. <img src="https://raw.githubusercontent.com/bowenliang123/markdown-exporter/main/_assets/icon.png" alt="Markdown Exporter Logo" width="200">
  3. </div>
  4. <p align="center">
  5. <a href="https://github.com/bowenliang123/markdown-exporter" target="_blank">
  6. <img alt="GitHub" src="https://img.shields.io/badge/bowenliang123-markdown--exporter-lightgray?logo=github"></a>
  7. <a href="https://marketplace.dify.ai/plugin/bowenliang123/md_exporter" target="_blank">
  8. <img alt="Dify Marketplace" src="https://img.shields.io/badge/Dify-md__exporter-blue"></a>
  9. <a href="https://clawhub.ai/bowenliang123/markdown-exporter" target="_blank">
  10. <img alt="OpenClaw" src="https://img.shields.io/badge/🦞OpenClaw-markdown--exporter-red"></a>
  11. <a href="https://pypi.org/project/md-exporter/" target="_blank">
  12. <img alt="PyPI" src="https://img.shields.io/badge/PyPI-md--exporter-yellow?logo=python"></a>
  13. </p>
  14. # Markdown Exporter
  15. ### An Agent Skill and Dify Plugin to Export Markdown into Powerful Documents
  16. - Author: [bowenliang123](https://github.com/bowenliang123)
  17. - GitHub Repo: [markdown-exporter](https://github.com/bowenliang123/markdown-exporter)
  18. **Markdown Exporter** can be used as:
  19. | Use As | Platforms | Installation |
  20. |------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  21. | Dify Plugin | [Dify](https://github.com/langgenius/dify) | Install from [Dify Marketplace](https://marketplace.dify.ai/plugins/bowenliang123/md_exporter) |
  22. | Agent Skills | Any platform supporting [Agent Skills](https://agentskills.io):<br/>- **IDEs/CLIs**: [Claude Code](https://code.claude.com/docs/en/skills), [Trae](https://docs.trae.ai/ide/skills), [Codebuddy](https://copilot.tencent.com/docs/cli/skills), etc.<br/>- **Agent Frameworks**: [LangChain DeepAgents](https://www.blog.langchain.com/using-skills-with-deep-agents/), [AgentScope](https://doc.agentscope.io/tutorial/task_agent_skill.html), etc. | - **Local Import**: download and import the [source code zip](https://github.com/bowenliang123/markdown-exporter/archive/refs/heads/main.zip)<br/>- **Remote Install**: run `/plugin marketplace add bowenliang123/markdown-exporter` in agent CLIs |
  23. | OpenClaw Skills 🦞 | [OpenClaw](https://docs.openclaw.ai/tools/skills#clawhub-install-%2B-sync) | Install from [ClawHub](https://clawhub.ai/bowenliang123/markdown-exporter): `npx clawhub@latest install markdown-exporter` |
  24. | Command Line Interface (CLI) | Python | - Install from [PyPI](https://pypi.org/project/md-exporter/): `pip install md-exporter`<br/>- Run `markdown-exporter -h` for usage information |
  25. ---
  26. ## ✨ What is Markdown Exporter?
  27. **Markdown Exporter** is a powerful toolset, available 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.
  28. 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.
  29. ### 🎯 Why You'll Love It
  30. - **🚀 Lightning Fast** – Export your Markdown to multiple formats in milliseconds
  31. - **🎨 Customizable** – Use custom templates for DOCX and PPTX to match your brand
  32. - **🔒 100% Private** – All processing happens locally, no data ever leaves your environment
  33. - **📊 Versatile** – From documents to spreadsheets, presentations to code files
  34. - **🌐 Multi-Language Support** – Perfect for international teams and content
  35. ---
  36. ## 🛠️ Tools and Supported Formats
  37. <table>
  38. <tr>
  39. <th>Tool</th>
  40. <th>Input</th>
  41. <th>Output</th>
  42. </tr>
  43. <tr>
  44. <td><code>md_to_docx</code></td>
  45. <td rowspan="9">📝 Markdown text</td>
  46. <td>📄 Word document (.docx)</td>
  47. </tr>
  48. <tr>
  49. <td><code>md_to_html</code></td>
  50. <td>🌐 HTML file (.html)</td>
  51. </tr>
  52. <tr>
  53. <td><code>md_to_html_text</code></td>
  54. <td>🌐 HTML text string</td>
  55. </tr>
  56. <tr>
  57. <td><code>md_to_jira</code></td>
  58. <td>🅹 Jira wiki markup text</td>
  59. </tr>
  60. <tr>
  61. <td><code>md_to_pdf</code></td>
  62. <td>📑 PDF file (.pdf)</td>
  63. </tr>
  64. <tr>
  65. <td><code>md_to_png</code></td>
  66. <td>🖼️ PNG image (.png), single long page or one image per page</td>
  67. </tr>
  68. <tr>
  69. <td><code>md_to_svg</code></td>
  70. <td>🖼️ SVG image (.svg), one image per page</td>
  71. </tr>
  72. <tr>
  73. <td><code>md_to_md</code></td>
  74. <td>📝 Markdown file (.md)</td>
  75. </tr>
  76. <tr>
  77. <td><code>md_to_ipynb</code></td>
  78. <td>📓 Jupyter Notebook (.ipynb)</td>
  79. </tr>
  80. <tr>
  81. <td><code>md_to_pptx</code></td>
  82. <td>📝 Markdown slides in <a href="https://pandoc.org/MANUAL.html#slide-shows">Pandoc style</a></td>
  83. <td>🎯 PowerPoint (.pptx)</td>
  84. </tr>
  85. <tr>
  86. <td><code>md_to_xlsx</code></td>
  87. <td rowspan="5">📋 <a href="https://www.markdownguide.org/extended-syntax/#tables">Markdown tables</a></td>
  88. <td>📊 Excel spreadsheet (.xlsx)</td>
  89. </tr>
  90. <tr>
  91. <td><code>md_to_csv</code></td>
  92. <td>📋 CSV file (.csv)</td>
  93. </tr>
  94. <tr>
  95. <td><code>md_to_json</code></td>
  96. <td>📦 JSON/JSONL file (.json)</td>
  97. </tr>
  98. <tr>
  99. <td><code>md_to_xml</code></td>
  100. <td>🏷️ XML file (.xml)</td>
  101. </tr>
  102. <tr>
  103. <td><code>md_to_latex</code></td>
  104. <td>📝 LaTeX file (.tex)</td>
  105. </tr>
  106. <tr>
  107. <td><code>md_to_codeblock</code></td>
  108. <td>💻 <a href="https://www.markdownguide.org/extended-syntax/#fenced-code-blocks">Code blocks in Markdown</a></td>
  109. <td>📁 Code files by language (.py, .js, .sh, etc.)</td>
  110. </tr>
  111. </table>
  112. ---
  113. ## 📖 Usage as Dify Plugin
  114. ![Usage Demo](https://raw.githubusercontent.com/bowenliang123/markdown-exporter/main/_assets/screenshots/usage_md_to_docx.png)
  115. Simply input your Markdown text, select your desired output format, and click export. It's that easy!
  116. ---
  117. ## 🎨 Tool Usage Examples
  118. ### 📄 Markdown → DOCX
  119. Create professional Word documents with beautiful formatting.
  120. > **✨ Pro Tip: Custom Styling with Templates**
  121. >
  122. > The `md_to_docx` tool supports custom DOCX template files, giving you full control over your document's appearance.
  123. >
  124. > **What you can customize:**
  125. > - Heading styles (fonts, sizes, colors)
  126. > - Paragraph formatting (spacing, indentation)
  127. > - Table styles and borders
  128. > - List styles and bullets
  129. > - And much more!
  130. >
  131. > Check out the [default docx template](https://github.com/bowenliang123/markdown-exporter/blob/main/md_exporter/assets/template/docx_template.docx) or create your own. Learn how at [Customize or create new styles](https://support.microsoft.com/en-us/office/customize-or-create-new-styles-d38d6e47-f6fc-48eb-a607-1eb120dec563).
  132. ![DOCX Example](https://raw.githubusercontent.com/bowenliang123/markdown-exporter/main/_assets/screenshots/md_to_docx_1.png)
  133. ---
  134. ### 📊 Markdown → XLSX
  135. Convert your Markdown tables into polished Excel spreadsheets with auto-fitted columns and preserved data types.
  136. **Input:**
  137. ```markdown
  138. | Name | Age | City |
  139. |---------|-----|-------------|
  140. | Alice | 30 | New York |
  141. | Bowen | 25 | Guangzhou |
  142. | Charlie | 35 | Tokyo |
  143. | David | 40 | Miami |
  144. ```
  145. **Output:**
  146. ![XLSX Example](https://raw.githubusercontent.com/bowenliang123/markdown-exporter/main/_assets/screenshots/md_to_xlsx_1.png)
  147. ---
  148. ### 🎯 Markdown → PPTX
  149. Turn your Markdown into stunning PowerPoint presentations automatically.
  150. > **✨ Syntax Requirements**
  151. >
  152. > The input Markdown must follow the syntax and guidance in [Pandoc Slide Shows](https://pandoc.org/MANUAL.html#slide-shows).
  153. >
  154. > **Supported Features:**
  155. > - ✅ Title slides
  156. > - ✅ Column layouts
  157. > - ✅ Tables
  158. > - ✅ Hyperlinks
  159. > - ✅ And more!
  160. >
  161. > **🎨 Custom Templates:**
  162. >
  163. > Use custom PPTX templates with slide masters to match your brand's visual identity. [Learn how](https://support.microsoft.com/en-us/office/customize-a-slide-master-036d317b-3251-4237-8ddc-22f4668e2b56). Get the [default pptx template](https://github.com/bowenliang123/markdown-exporter/blob/main/md_exporter/assets/template/pptx_template.pptx).
  164. **Input Example:**
  165. ````markdown
  166. ---
  167. title: Markdown Exporter
  168. author: Bowen Liang
  169. ---
  170. # Introduction
  171. ## Welcome Slide
  172. Welcome to our Markdown Exporter!
  173. ::: notes
  174. Remember to greet the audience warmly.
  175. :::
  176. ---
  177. # Section 1: Basic Layouts
  178. ## Title and Content
  179. - This is a basic slide with bullet points
  180. - It uses the "Title and Content" layout
  181. - Perfect for simple content presentation
  182. ## Two Column Layout
  183. ::::: columns
  184. ::: column
  185. Left column content:
  186. - Point 1
  187. - Point 2
  188. :::
  189. ::: column
  190. Right column content:
  191. - Point A
  192. - Point B
  193. :::
  194. :::::
  195. ## Comparison Layout
  196. ::::: columns
  197. ::: column
  198. Text followed by an image:
  199. ![Test Image](https://avatars.githubusercontent.com/u/127165244?s=48&v=4)
  200. :::
  201. ::: column
  202. - This triggers the "Comparison" layout
  203. - Useful for side-by-side comparisons
  204. :::
  205. :::::
  206. ## Content with Caption
  207. Here's some explanatory text about the image below.
  208. ![Test Image](https://avatars.githubusercontent.com/u/127165244?s=48&v=4 "fig:Test Image")
  209. ---
  210. # Section 2: Advanced Features
  211. ## Code Block
  212. Here's a Python code block:
  213. ```python
  214. def greet(name):
  215. return f"Hello, {name}!"
  216. print(greet("World"))
  217. ```
  218. ## Table Example
  219. | Column 1 | Column 2 | Column 3 |
  220. |----------|----------|----------|
  221. | Row 1 | Data | More |
  222. | Row 2 | Info | Stuff |
  223. ## Incremental List
  224. ::: incremental
  225. - This point appears first
  226. - Then this one
  227. - And finally this one
  228. :::
  229. ## {background-image="https://avatars.githubusercontent.com/u/127165244?s=48&v=4"}
  230. ::: notes
  231. This is a slide with a background image and speaker notes only.
  232. The "Blank" layout will be used.
  233. :::
  234. # Conclusion
  235. ## Thank You
  236. Thank you for viewing this kitchen sink presentation!
  237. ::: notes
  238. Remember to thank the audience and invite questions.
  239. :::
  240. ````
  241. **Output:**
  242. ![PPTX Example](https://raw.githubusercontent.com/bowenliang123/markdown-exporter/main/_assets/screenshots/md_to_pptx_1.png)
  243. ---
  244. ### 🌐 Markdown → HTML
  245. Transform your Markdown into clean, semantic HTML perfect for web pages.
  246. ![HTML Example](https://raw.githubusercontent.com/bowenliang123/markdown-exporter/main/_assets/screenshots/md_to_html_1.png)
  247. ---
  248. ### 📑 Markdown → PDF
  249. Generate professional PDF documents perfect for printing or sharing.
  250. ![PDF Example](https://raw.githubusercontent.com/bowenliang123/markdown-exporter/main/_assets/screenshots/md_to_pdf_1.png)
  251. ---
  252. ### 🖼️ Markdown → PNG
  253. Render your Markdown as PNG image(s) — a single long-page image, or one image per A4 page.
  254. ![PNG Example](https://raw.githubusercontent.com/bowenliang123/markdown-exporter/main/_assets/screenshots/md_to_png_1.png)
  255. ---
  256. ### 🖼️ Markdown → SVG
  257. Render your Markdown as scalable vector SVG image(s), one SVG per page.
  258. ![SVG Example](https://raw.githubusercontent.com/bowenliang123/markdown-exporter/main/_assets/screenshots/md_to_svg_1.png)
  259. ---
  260. ### 📓 Markdown → Jupyter Notebook
  261. Transform your Markdown into Jupyter Notebook `.ipynb` format.
  262. **Input Example:**
  263. ````markdown
  264. # Example Jupyter Notebook
  265. This is a simplified test markdown file that will be converted to an IPYNB notebook with multiple cells.
  266. ## Introduction
  267. This notebook demonstrates the conversion of markdown to IPYNB format.
  268. - It includes markdown formatting
  269. - It has code cells in different languages
  270. - It shows how tables are handled
  271. ```python
  272. # Python Code Cell
  273. print("Hello, world!")
  274. x = 10
  275. y = 20
  276. print(f"Sum: {x + y}")
  277. ```
  278. ## Data Table
  279. Here's a sample table:
  280. | Name | Score | Occupation |
  281. |-------|-------|------------|
  282. | Alice | 80 | Engineer |
  283. | Bowen | 90 | Designer |
  284. ## Conclusion
  285. This concludes the simplified test notebook.
  286. ````
  287. **Output File:**
  288. ![IPYNB Example](https://raw.githubusercontent.com/bowenliang123/markdown-exporter/main/_assets/screenshots/md_to_ipynb_1.png)
  289. ---
  290. ### 💻 Markdown → Code Block Files
  291. Effortlessly extract code blocks from your Markdown and save them as individual files, preserving syntax highlighting and formatting.
  292. #### Supported Languages & File Extensions
  293. | Language | File Extension | Language | File Extension |
  294. |------------|----------------|------------|----------------|
  295. | Python | `.py` | CSS | `.css` |
  296. | JavaScript | `.js` | YAML | `.yaml` |
  297. | HTML | `.html` | Ruby | `.rb` |
  298. | Bash | `.sh` | Java | `.java` |
  299. | JSON | `.json` | PHP | `.php` |
  300. | XML | `.xml` | Markdown | `.md` |
  301. | SVG | `.svg` | Julia | `.jl` |
  302. | Rust | `.rs` | | |
  303. ![Code Block Example 1](https://raw.githubusercontent.com/bowenliang123/markdown-exporter/main/_assets/screenshots/usage_md_to_codeblock_2.png)
  304. **Pro Tip:** Enable compression to bundle all extracted files into a single ZIP archive for easy sharing and organization!
  305. ![Code Block Example 2](https://raw.githubusercontent.com/bowenliang123/markdown-exporter/main/_assets/screenshots/usage_md_to_codeblock_3.png)
  306. ![Code Block Example 3](https://raw.githubusercontent.com/bowenliang123/markdown-exporter/main/_assets/screenshots/usage_md_to_codeblock_4.png)
  307. ---
  308. ### 📋 Markdown → CSV
  309. Export your Markdown tables to universal CSV format.
  310. ![CSV Example](https://raw.githubusercontent.com/bowenliang123/markdown-exporter/main/_assets/screenshots/md_to_csv_1.png)
  311. ---
  312. ### 📦 Markdown → JSON / JSONL
  313. Convert your tables into structured data formats.
  314. **JSONL Style (default)**
  315. - One JSON object per line
  316. - Perfect for streaming and logging
  317. ![JSONL Example](https://raw.githubusercontent.com/bowenliang123/markdown-exporter/main/_assets/screenshots/md_to_json_2.png)
  318. **JSON Array Style**
  319. - All objects in a single array
  320. - Ideal for API responses
  321. ![JSON Example](https://raw.githubusercontent.com/bowenliang123/markdown-exporter/main/_assets/screenshots/md_to_json_1.png)
  322. ---
  323. ### 🏷️ Markdown → XML
  324. Transform your data into XML format.
  325. ![XML Example](https://raw.githubusercontent.com/bowenliang123/markdown-exporter/main/_assets/screenshots/md_to_xml_1.png)
  326. ---
  327. ### 📝 Markdown → LaTeX
  328. Generate LaTeX source code for academic and technical documents.
  329. **LaTeX Output:**
  330. ![LaTeX Example 1](https://raw.githubusercontent.com/bowenliang123/markdown-exporter/main/_assets/screenshots/md_to_latex_1.png)
  331. **Compiled PDF:**
  332. ![LaTeX Example 2](https://raw.githubusercontent.com/bowenliang123/markdown-exporter/main/_assets/screenshots/md_to_latex_2.png)
  333. ---
  334. ### 📝 Markdown → Markdown
  335. Save your Markdown content as a `.md` file for future use.
  336. ---
  337. ## 💻 Command Line Interface (CLI) Usage
  338. Markdown Exporter provides a powerful command-line interface that allows you to access all its functionality directly from your terminal.
  339. ### Installation
  340. ```bash
  341. # with pip
  342. pip install md-exporter
  343. # with uv
  344. uv tool install md-exporter
  345. ```
  346. ### Basic Usage
  347. Use the `markdown-exporter` command to access all the tools:
  348. ```bash
  349. markdown-exporter <subcommand> <args> [options]
  350. ```
  351. ### Tool Usage Guide
  352. #### md_to_docx - Convert Markdown to DOCX
  353. ```bash
  354. markdown-exporter md_to_docx <input> <output> [options]
  355. ```
  356. - **Arguments**: `input` (Markdown file path), `output` (DOCX file path)
  357. - **Options**: `--template` (Path to DOCX template file), `--strip-wrapper` (Remove code block wrapper if present)
  358. #### md_to_html - Convert Markdown to HTML
  359. ```bash
  360. markdown-exporter md_to_html <input> <output> [options]
  361. ```
  362. - **Arguments**: `input` (Markdown file path), `output` (HTML file path)
  363. - **Options**: `--strip-wrapper` (Remove code block wrapper if present)
  364. #### md_to_html_text - Convert Markdown to HTML Text
  365. ```bash
  366. markdown-exporter md_to_html_text <input>
  367. ```
  368. - **Arguments**: `input` (Markdown file path)
  369. #### md_to_jira - Convert Markdown to Jira Wiki Markup
  370. ```bash
  371. markdown-exporter md_to_jira <input>
  372. ```
  373. - **Arguments**: `input` (Markdown file path)
  374. #### md_to_pdf - Convert Markdown to PDF
  375. ```bash
  376. markdown-exporter md_to_pdf <input> <output> [options]
  377. ```
  378. - **Arguments**: `input` (Markdown file path), `output` (PDF file path)
  379. - **Options**: `--strip-wrapper` (Remove code block wrapper if present)
  380. #### md_to_png - Convert Markdown to PNG
  381. ```bash
  382. markdown-exporter md_to_png <input> <output> [options]
  383. ```
  384. - **Arguments**: `input` (Markdown file path), `output` (PNG file path)
  385. - **Options**: `--multi-page` (Export one numbered PNG per A4 page instead of a single long-page PNG), `--strip-wrapper` (Remove code block wrapper if present)
  386. #### md_to_svg - Convert Markdown to SVG
  387. ```bash
  388. markdown-exporter md_to_svg <input> <output> [options]
  389. ```
  390. - **Arguments**: `input` (Markdown file path), `output` (SVG file path). One SVG per page; numbered files are generated when the document has multiple pages
  391. - **Options**: `--strip-wrapper` (Remove code block wrapper if present)
  392. #### md_to_md - Convert Markdown to MD File
  393. ```bash
  394. markdown-exporter md_to_md <input> <output>
  395. ```
  396. - **Arguments**: `input` (Markdown file path), `output` (MD file path)
  397. #### md_to_ipynb - Convert Markdown to IPYNB
  398. ```bash
  399. markdown-exporter md_to_ipynb <input> <output> [options]
  400. ```
  401. - **Arguments**: `input` (Markdown file path), `output` (IPYNB file path)
  402. - **Options**: `--strip-wrapper` (Remove code block wrapper if present)
  403. #### md_to_pptx - Convert Markdown to PPTX
  404. ```bash
  405. markdown-exporter md_to_pptx <input> <output> [options]
  406. ```
  407. - **Arguments**: `input` (Markdown file path), `output` (PPTX file path)
  408. - **Options**: `--template` (Path to PPTX template file)
  409. #### md_to_xlsx - Convert Markdown Tables to XLSX
  410. ```bash
  411. markdown-exporter md_to_xlsx <input> <output> [options]
  412. ```
  413. - **Arguments**: `input` (Markdown file path), `output` (XLSX file path)
  414. - **Options**: `--force-text` (Convert cell values to text type), `--strip-wrapper` (Remove code block wrapper if present)
  415. #### md_to_csv - Convert Markdown Tables to CSV
  416. ```bash
  417. markdown-exporter md_to_csv <input> <output> [options]
  418. ```
  419. - **Arguments**: `input` (Markdown file path), `output` (CSV file path)
  420. - **Options**: `--strip-wrapper` (Remove code block wrapper if present)
  421. #### md_to_json - Convert Markdown Tables to JSON
  422. ```bash
  423. markdown-exporter md_to_json <input> <output> [options]
  424. ```
  425. - **Arguments**: `input` (Markdown file path), `output` (JSON file path)
  426. - **Options**: `--style` (JSON output style: jsonl or json_array), `--strip-wrapper` (Remove code block wrapper if present)
  427. #### md_to_xml - Convert Markdown Tables to XML
  428. ```bash
  429. markdown-exporter md_to_xml <input> <output> [options]
  430. ```
  431. - **Arguments**: `input` (Markdown file path), `output` (XML file path)
  432. - **Options**: `--strip-wrapper` (Remove code block wrapper if present)
  433. #### md_to_latex - Convert Markdown Tables to LaTeX
  434. ```bash
  435. markdown-exporter md_to_latex <input> <output> [options]
  436. ```
  437. - **Arguments**: `input` (Markdown file path), `output` (LaTeX file path)
  438. - **Options**: `--strip-wrapper` (Remove code block wrapper if present)
  439. #### md_to_codeblock - Extract Code Blocks to Files
  440. ```bash
  441. markdown-exporter md_to_codeblock <input> <output> [options]
  442. ```
  443. - **Arguments**: `input` (Markdown file path), `output` (Output directory or ZIP file path)
  444. - **Options**: `--compress` (Compress all code blocks into a ZIP file)
  445. ### Important Notes
  446. - All commands only support file paths as input
  447. - The package handles all dependency management automatically
  448. - You can run the command from anywhere on your system — no need to navigate to the project directory
  449. - Use `markdown-exporter <subcommand> -h` for detailed help on each subcommand
  450. ---
  451. ## 📢 Releases
  452. Releases are available at:
  453. - [GitHub Repo Releases](https://github.com/bowenliang123/markdown-exporter/releases)
  454. - [Dify Marketplace Releases](https://marketplace.dify.ai/plugins/bowenliang123/md_exporter)
  455. ### Changelog
  456. - 4.0.0
  457. - [BREAKING CHANGE] Completely rewrite the `md_to_pdf` tool on Pandoc and Typst (a Rust-based markup language output generator), replacing xhtml2pdf for performace and more stable page output (#174)
  458. - Bundle the full Noto Sans CJK font set in `md_to_pdf`, fixing blank/garbled output for Simplified Chinese, Traditional Chinese, Japanese, and Korean text, with paragraph-level regional font adaptation (#175)
  459. - Introduce `md_to_svg` and `md_to_png` tools for converting Markdown to images (#179)
  460. - Fix image display issues in README by unifying screenshot sizes and removing unreferenced assets (#180 #187)
  461. - Fix PDF/PNG/SVG conversion failure on thematic breaks (`---`) by replacing `#horizontalrule` removed in Typst 0.13+ (#186)
  462. - Fix emoji rendering failure (tofu boxes) in `md_to_pdf`, `md_to_png` and `md_to_svg` tools on systems without emoji fonts by bundling the Twemoji Mozilla emoji font (#191)
  463. - Fix CJK bold text (headings, `**strong**`) rendering at regular weight in `md_to_pdf`, `md_to_png` and `md_to_svg` by bundling the Noto Sans CJK Bold weight (#193)
  464. - Fix `<br>` line breaks being lost in table cells in `md_to_xlsx` tool (#183)
  465. - 3.8.0
  466. - Embed Noto Sans SC font in `md_to_pdf` tool to fix display issues of Simplified Chinese, Traditional Chinese, and Japanese text in generated PDFs (#172)
  467. - 3.7.0
  468. - Introduce `md_to_jira` tool for converting Markdown to Jira wiki markup
  469. - Upgrade Dify Plugin SDK (`dify_plugin`) to 0.10.x and bump required Python version to 3.12+
  470. - 3.6.9
  471. - Reduced the packaged Dify plugin file size by 95% by removing the screenshot images for README docs.
  472. - 3.6.7
  473. - Fixed path error issue for docx and pptx template files in Python distribution package
  474. - 3.6.6
  475. - Refactor code structure to ensure Agent Skill, Dify plugin and CLI properly share the core file transformation logic
  476. - Make project installable and usable on OpenClaw as Agent Skill 🦞
  477. - Refactor Python packaging to make `markdown-exporter` as standalone CLI tool with Python package `md-exporter` installed
  478. - Remove `md_to_linked_image` tool
  479. - 3.6.0
  480. - Improve conversion success rate in `md_to_docx`, `md_to_pptx`, and `md_to_ipynb` tools by removing enforcement of spaces and blank lines in heading headers
  481. - Speed up first call on pandoc by running the warm-up method
  482. - 3.5.1
  483. - Correctly handle code cells by pre-processing markdown input in `md_to_ipynb` tool
  484. - 3.5.0
  485. - Introduce `md_to_ipynb` tool for converting Markdown text to Jupyter Notebook (.ipynb) format
  486. - The `md_to_ipynb` tool automatically splits markdown content into separate notebook cells
  487. - Update logo icon (for the very first time)
  488. - 3.4.0
  489. - [BREAKING CHANGE] Migrate `md_to_pptx` tool to use `pandoc` for conversion for stable features and reduced dependency footprint
  490. - The Markdown input for `md_to_pptx` tool now must follow the markdown syntax and guidance in [Pandoc slides](https://pandoc.org/MANUAL.html#slide-shows)
  491. - 3.3.0
  492. - Update `md_to_pptx` from 6.1.1 to 6.2.1
  493. - Remove `md_to_mermaid` tool to reduce installation time and footprint by eliminating Node.js runtime dependency
  494. - 3.2.0
  495. - Introduce `md_to_mermaid` tool for converting Mermaid diagram code blocks in Markdown to PNG images
  496. - Refactor Agent Skill scripts and entry shell scripts
  497. - 3.0.0
  498. - `md_exporter` is now ready for Agent Skills and runnable as standalone
  499. - Add `SKILL.md` for Agent Skills description
  500. - Add `/scripts` for code scripts of all tools as Agent Skills execution entry
  501. - Extract core file transformation logic into `/scripts/lib` shared by both Agent Skills scripts and Dify Plugin
  502. - Add `pyproject.toml` as Python project description and dependency management
  503. - Add automated tests covering all usage of Claude Skills scripts entry points
  504. - Bump `md2pptx` from 6.1 to 6.1.1 for table caption bug fix
  505. - 2.3.0
  506. - Resolve XLSX generation issue by skipping irrelevant characters before first table in `md_to_xlsx` tool
  507. - 2.2.0
  508. - Fix CI problems in GitHub Actions
  509. - 2.1.0
  510. - Fix remote image fetching in `md_to_pptx` tool by updating `md2pptx` to 6.1
  511. - Fix missing table border in `md_to_docx` tool by updating default DOCX template file
  512. - Intercept `run-python` macro usage in `md_to_pptx` tool
  513. - 2.0.0
  514. - [BREAKING CHANGE] Migrate `md_to_docx` tool to use `pandoc` for conversion
  515. - Major improvements in `md_to_docx` tool:
  516. - Support custom styling using a template DOCX file, allowing font, font size, and color style customization for headings, paragraphs, etc.
  517. - Optimize file size in generated DOCX files
  518. - Better support for multi-language content
  519. - Remove `md_to_rst` and `md_to_epub` tools
  520. - Add `force_text_value` option in `md_to_xlsx` tool to control whether to force convert all cell values to text strings
  521. - 1.12.0
  522. - Fix optional PPTX template file handling in `md_to_pptx` tool
  523. - Fix error message with file path in command assembly in `md_to_pptx` tool
  524. - Bump `md2pptx` to 6.0
  525. - 1.10.2
  526. - Bump `md2pptx` from 5.4.4 to 5.4.5
  527. - Bump `python-docx` from 1.1 to 1.2.0
  528. - Increase PDF generation capacity limit to 500MB
  529. - 1.10.0
  530. - Support JSONL output style in `md_to_json` tool, using JSON Lines format with one object per line
  531. - Change default output style of `md_to_json` tool to JSONL
  532. - Minor documentation updates in parameter descriptions
  533. - 1.9.0
  534. - Support custom sheet names in `md_to_xlsx` tool using headings in Markdown text
  535. - Force convert column types to string in `md_to_xlsx` tool to prevent data precision loss and display issues in Microsoft Excel
  536. - Autofit column width in `md_to_xlsx` tool
  537. - 1.8.0
  538. - Resolve garbled character issues when opening CSV files containing non-ASCII characters (e.g., Chinese, Japanese, emoji characters) in Microsoft Excel
  539. - 1.7.0
  540. - Support custom PPTX template files in `md_to_pptx` tool
  541. - Support file generation from multiple tables in `md_to_csv`, `md_to_latex`, and `md_to_xlsx` tools
  542. - 1.6.0
  543. - Introduce `md_to_html_text` tool for converting Markdown text to HTML text
  544. - Standardize fonts for headings and body paragraphs in DOCX files generated by `md_to_docx` tool
  545. - 1.5.0
  546. - Improve PDF display for pure English markdown text input in `md_to_pdf` tool by skipping font settings for CJK characters
  547. - Introduce `md_to_epub` tool for converting Markdown text to EPUB eBook files
  548. - Support compressing all PNG files into a single zip file in `md_to_png` tool
  549. - Increase capacity limit for PDF files to 100MB in `md_to_pdf` tool
  550. - Remove explicit timeout configuration MAX_REQUEST_TIMEOUT
  551. - 1.4.100
  552. - Special version celebrating [Dify](https://github.com/langgenius/dify)'s 100k GitHub stars milestone
  553. - Add `md_to_png` tool for converting Markdown text to PNG image files
  554. - 1.3.0
  555. - Update SDK version
  556. - 1.2.0
  557. - Support compressing images into a single zip file in `md_to_linked_image` tool
  558. - 1.1.0
  559. - Enable line breaks normalization in all tools by default, replacing all occurrences of `\n` with `\n`
  560. - Remove `<think>` tags of reasoning content in input Markdown text
  561. - Fix missing custom output filename support in `md_to_csv`, `md_to_json`, and `md_to_latex` tools
  562. - 1.0.1
  563. - Remove redundant URL-safe conversion in custom output filenames
  564. - 1.0.0
  565. - Support custom output filenames
  566. - 0.5.0
  567. - Introduce `md_to_linked_image` tool for extracting image files from links in Markdown text
  568. - 0.4.3
  569. - Improve Chinese character display in text paragraphs in `md_to_docx` tool by setting global font to Song if content contains Chinese characters
  570. - 0.4.2
  571. - Support Java, PHP, and Ruby file exporting in `md_to_codeblock` tool
  572. - 0.4.1
  573. - Support YAML file exporting in `md_to_codeblock` tool
  574. - 0.4.0
  575. - Support exporting Markdown codeblocks into a single zip file in `md_to_codeblock` tool
  576. - 0.3.0
  577. - Fix library import error in `md_to_pptx` tool when running on self-hosted Dify plugin-daemon service
  578. - 0.2.0
  579. - Introduce `md_to_codeblock` tool for extracting code blocks in Markdown to Python, JSON, JS, BASH, SVG, HTML, XML, and MARKDOWN files
  580. - Introduce `md_to_rst` tool for converting Markdown to reStructuredText (.rst) format
  581. - 0.1.x
  582. - Introduce `md_to_pptx` tool for converting Markdown to PowerPoint (.pptx) format
  583. - 0.0.x
  584. - Publish to Dify Marketplace
  585. - Support exporting Markdown to DOCX, PPTX, XLSX, PDF, HTML, MD, CSV, JSON, XML, and LaTeX files
  586. ---
  587. ## 🤝 Contributing
  588. Contributions are welcome! Please feel free to submit issues or pull requests on our [GitHub repository](https://github.com/bowenliang123/markdown-exporter).
  589. ### Code Style
  590. We use `ruff` to ensure code consistency. Run the following command to automatically fix code style issues:
  591. ```bash
  592. uv run ruff check --fix --select UP .
  593. ```
  594. Or use the provided script:
  595. ```bash
  596. dev/reformat.sh
  597. ```
  598. ---
  599. ## 📜 License
  600. This project is licensed under the **Apache License 2.0**.
  601. ---
  602. ## 🔒 Privacy
  603. Privacy matters. See the [Privacy Policy](./PRIVACY.md) for more details. This plugin:
  604. - Collects **NO** data
  605. - Processes everything **locally**
  606. - Sends **NO information** to third-party services
  607. All file transformations happen entirely within the local environment.
  608. ---
  609. ## 🙏 Acknowledgments
  610. This project stands on the shoulders of giants. We're grateful to these amazing open-source projects:
  611. | Project | License |
  612. |-------------------------------------------------------|----------------------|
  613. | [pypandoc](https://github.com/JessicaTegner/pypandoc) | MIT License |
  614. | [pandas](https://github.com/pandas-dev/pandas) | BSD 3-Clause License |
  615. | [typst](https://github.com/typst/typst) | Apache License 2.0 |
  616. | [Noto CJK](https://github.com/notofonts/noto-cjk) | SIL Open Font License 1.1 |

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.