xiaohongshu
xiaohongshu
markdown-exporter
Markdown exporter for export 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. Also known as the md_exporter skill.
Full skill instructions
Markdown Exporter is a Agent Skill 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.
</table>
To use the Markdown Exporter skill, ensure you have the following prerequisites installed:
All scripts provided in this project are Python scripts located in the scripts/ directory. All required Python dependencies are declared in the project's pyproject.toml file.
We strongly recommend using the bash scripts located in the scripts/ directory. These scripts provide a seamless experience by automatically handling dependency management and execution:
Automatic Dependency Management: When you run a bash script from the scripts/ directory, it will:
uv package manager is installeduv is available, it will use uv run to automatically install dependencies and execute the Python script in one stepuv is not available, it will fall back to using pip to install dependencies from requirements.txt before executing the scriptExecute scripts with bash:
scripts/md-exporter <script_name> <args> [options]
You can also run the Python scripts directly, but you'll need to manage dependencies yourself:
Using uv (recommended if running directly):
uv run python scripts/parser/<script_name>.py <args> [options]
Using pip:
# Install dependencies first
pip install -r requirements.txt
# Then run the script
python scripts/parser/<script_name>.py <args> [options]
scripts/ provide the most convenient way to run the tools, as they handle all dependency management automatically.Converts Markdown tables to CSV format.
Usage:
scripts/md-exporter md_to_csv <input> <output> [options]
Arguments:
input - Input Markdown file pathoutput - Output CSV file pathOptions:
--strip-wrapper - Remove code block wrapper if presentExample:
scripts/md-exporter md_to_csv /path/input.md /path/output.csv
Converts Markdown text to PDF format with support for Chinese, Japanese, and other languages.
Usage:
scripts/md-exporter md_to_pdf <input> <output> [options]
Arguments:
input - Input Markdown file pathoutput - Output PDF file pathOptions:
--strip-wrapper - Remove code block wrapper if presentExample:
scripts/md-exporter md_to_pdf /path/input.md /path/output.pdf
Converts Markdown text to DOCX format using pandoc.
Usage:
scripts/md-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 presentExample:
scripts/md-exporter md_to_docx /path/input.md /path/output.docx
scripts/md-exporter md_to_docx /path/input.md /path/output.docx --template /path/template.docx
Converts Markdown tables to XLSX format with multiple sheets support.
Usage:
scripts/md-exporter md_to_xlsx <input> <output> [options]
Arguments:
input - Input Markdown file pathoutput - Output XLSX file pathOptions:
--force-text - Convert cell values to text type (default: True)--strip-wrapper - Remove code block wrapper if presentExample:
scripts/md-exporter md_to_xlsx /path/input.md /path/output.xlsx
Converts Markdown text to PPTX format using pandoc.
Usage:
scripts/md-exporter md_to_pptx <input> <output> [options]
Arguments:
input - Input Markdown file pathoutput - Output PPTX file pathOptions:
--template - Path to PPTX template file (optional)Example:
scripts/md-exporter md_to_pptx /path/input.md /path/output.pptx
Extracts code blocks from Markdown and saves them as individual files.
Usage:
scripts/md-exporter md_to_codeblock <input> <output> [options]
Arguments:
input - Input Markdown file pathoutput - Output file or directory pathOptions:
--compress - Compress all code blocks into a ZIP fileExample:
scripts/md-exporter md_to_codeblock /path/input.md /path/output_dir
scripts/md-exporter md_to_codeblock /path/input.md /path/output.zip --compress
Converts Markdown tables to JSON or JSONL format.
Usage:
scripts/md-exporter md_to_json <input> <output> [options]
Arguments:
input - Input Markdown file pathoutput - Output JSON file pathOptions:
--style - JSON output style: jsonl (default) or json_array--strip-wrapper - Remove code block wrapper if presentExample:
scripts/md-exporter md_to_json /path/input.md /path/output.json
scripts/md-exporter md_to_json /path/input.md /path/output.json --style json_array
Converts Markdown text to XML format.
Usage:
scripts/md-exporter md_to_xml <input> <output> [options]
Arguments:
input - Input Markdown file pathoutput - Output XML file pathOptions:
--strip-wrapper - Remove code block wrapper if presentExample:
scripts/md-exporter md_to_xml /path/input.md /path/output.xml
Converts Markdown tables to LaTeX format.
Usage:
scripts/md-exporter md_to_latex <input> <output> [options]
Arguments:
input - Input Markdown file pathoutput - Output LaTeX file pathOptions:
--strip-wrapper - Remove code block wrapper if presentExample:
scripts/md-exporter md_to_latex /path/input.md /path/output.tex
Converts Markdown text to HTML format using pandoc.
Usage:
scripts/md-exporter md_to_html <input> <output> [options]
Arguments:
input - Input Markdown file pathoutput - Output HTML file pathOptions:
--strip-wrapper - Remove code block wrapper if presentExample:
scripts/md-exporter md_to_html /path/input.md /path/output.html
Converts Markdown text to HTML and outputs to stdout.
Usage:
scripts/md-exporter md_to_html_text <input>
Arguments:
input - Input Markdown file pathExample:
scripts/md-exporter md_to_html_text /path/input.md
Converts Markdown text to PNG images (one per page).
Usage:
scripts/md-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 presentExample:
scripts/md-exporter md_to_png /path/input.md /path/output.png
scripts/md-exporter md_to_png /path/input.md /path/output.png --compress
Saves Markdown text to a .md file.
Usage:
scripts/md-exporter md_to_md <input> <output>
Arguments:
input - Input Markdown file pathoutput - Output MD file pathExample:
scripts/md-exporter md_to_md /path/input.md /path/output.md
Extracts image links from Markdown and downloads them as files.
Usage:
scripts/md-exporter md_to_linked_image <input> <output> [options]
Arguments:
input - Input Markdown file pathoutput - Output file or directory pathOptions:
--compress - Compress all images into a ZIP fileExample:
scripts/md-exporter md_to_linked_image /path/input.md /path/output_dir
scripts/md-exporter md_to_linked_image /path/input.md /path/output.zip --compress
--strip-wrapper option to remove code block wrappers (```) from the input Markdownxiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience