markdown-exporter
Convert Markdown text to DOCX, PPTX, XLSX, PDF, HTML, IPYNB, MD, CSV, JSON, JSONL, XML files, and extract code blocks in Markdown to Python, Bash,JS and etc files.
What this skill does
# Markdown Exporter Markdown Exporter is an Agent Skill that transforms your Markdown text into a wide variety of professional format files. This [SKILL.md](https://github.com/bowenliang123/markdown-exporter/blob/main/SKILL.md) for Agent Skills, the cli tool and [Python package `markdown-exporter`](https://pypi.org/project/md-exporter/) are maintained in the GitHub repository [bowenliang123/markdown-exporter](https://github.com/bowenliang123/markdown-exporter) by [bowenliang123](https://github.com/bowenliang123). ### Tools and Supported Formats | 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_md` | ๐ Markdown text | ๐ Markdown file (.md) | | `md_to_ipynb` | ๐ Markdown text | ๐ Jupyter Notebook (.ipynb) | | `md_to_pptx` | ๐ Markdown slides in [Pandoc style](https://pandoc.org/MANUAL.html#slide-shows) | ๐ฏ PowerPoint (.pptx) | | `md_to_xlsx` | ๐ [Markdown tables](https://www.markdownguide.org/extended-syntax/#tables) | ๐ Excel spreadsheet (.xlsx) | | `md_to_csv` | ๐ [Markdown tables](https://www.markdownguide.org/extended-syntax/#tables) | ๐ CSV file (.csv) | | `md_to_json` | ๐ [Markdown tables](https://www.markdownguide.org/extended-syntax/#tables) | ๐ฆ JSON/JSONL file (.json) | | `md_to_xml` | ๐ [Markdown tables](https://www.markdownguide.org/extended-syntax/#tables) | ๐ท๏ธ XML file (.xml) | | `md_to_latex` | ๐ [Markdown tables](https://www.markdownguide.org/extended-syntax/#tables) | ๐ LaTeX file (.tex) | | `md_to_codeblock` | ๐ป [Code blocks in Markdown](https://www.markdownguide.org/extended-syntax/#fenced-code-blocks) | ๐ 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](#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](#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](#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](#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)](#slides-for-pptx) section below. --- ### md_to_codeblock - Extract Codeblocks to Files Extracts code blocks from Markdown a
Related in Web Dev
generating-lwc-components
IncludedLightning Web Components with PICKLES methodology and 165-point scoring. Use this skill when the user creates or edits LWC components, builds wire service patterns, or writes Jest tests for LWC. TRIGGER when: user creates/edits LWC components, touches lwc/**/*.js, .html, .css, .js-meta.xml files, or asks about wire service, SLDS, or Jest LWC tests. DO NOT TRIGGER when: Apex classes (use generating-apex), Aura components, or Visualforce.
tanstack-query
IncludedManage server state in React with TanStack Query v5. Set up queries with useQuery, mutations with useMutation, configure QueryClient caching strategies, implement optimistic updates, and handle infinite scroll with useInfiniteQuery. Use when: setting up data fetching in React projects, migrating from v4 to v5, or fixing object syntax required errors, query callbacks removed issues, cacheTime renamed to gcTime, isPending vs isLoading confusion, keepPreviousData removed problems.
document-processor-api
IncludedProcess documents with Nutrient DWS. Use when the user wants to generate PDFs from HTML or URLs, convert Office/images/PDFs, assemble or split packets, OCR scans, extract text/tables/key-value pairs, redact PII, watermark, sign, fill forms, optimize PDFs, or produce compliance outputs like PDF/A or PDF/UA. Triggers include convert to PDF, merge these PDFs, OCR this scan, extract tables, redact PII, sign this PDF, make this PDF/A, or linearize for web delivery.
nutrient-document-processing
IncludedProcess documents with Nutrient DWS. Use when the user wants to generate PDFs from HTML or URLs, convert Office/images/PDFs, assemble or split packets, OCR scans, extract text/tables/key-value pairs, redact PII, watermark, sign, fill forms, optimize PDFs, or produce compliance outputs like PDF/A or PDF/UA. Triggers include convert to PDF, merge these PDFs, OCR this scan, extract tables, redact PII, sign this PDF, make this PDF/A, or linearize for web delivery.
tanstack-query
IncludedManage server state in React with TanStack Query v5. Covers useMutationState, simplified optimistic updates, throwOnError, network mode (offline/PWA), and infiniteQueryOptions. Use when setting up data fetching, fixing v4โv5 migration errors (object syntax, gcTime, isPending, keepPreviousData), or debugging SSR/hydration issues with streaming server components.
accelint-nextjs-best-practices
IncludedNext.js performance optimization and best practices. Use when writing Next.js code (App Router or Pages Router); implementing Server Components, Server Actions, or API routes; optimizing RSC serialization, data fetching, or server-side rendering; reviewing Next.js code for performance issues; fixing authentication in Server Actions; or implementing Suspense boundaries, parallel data fetching, or request deduplication.