export-document

Export Markdown documents to DOCX and PDF with Mermaid diagrams and Chinese government formatting.

1|Updated Mar 27, 2026
One-click install
npx skills add https://github.com/Ameng2001/astra-studio-plugins --skill export-document-ameng2001
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: export-document
Source: https://github.com/Ameng2001/astra-studio-plugins/tree/main/studio-docs/skills/export-document
Command: npx skills add https://github.com/Ameng2001/astra-studio-plugins --skill export-document-ameng2001

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

You need to turn Markdown drafts into polished, print-ready Chinese government-style documents, including diagrams and tables, without spending days on manual formatting.

Core Features & Use Cases

  • End-to-end export pipeline: Converts Markdown to DOCX and/or PDF while preserving document structure.
  • Mermaid diagram rendering: Automatically renders Mermaid code blocks into images for professional output.
  • Government document formatting: Applies A4 page setup, margins, Chinese font mapping (heading/body/table), headers/footers, and line spacing.
  • Table beautification: Improves table borders, header styling, and readability for institutional documents.
  • Degradation with clear warnings: Stops only if pandoc is missing; otherwise it skips optional steps (Mermaid, DOCX beautification, or PDF generation) gracefully.

Quick Start

Export docs/linxi-edutech/智慧校园建设方案.md to both DOCX and PDF in a single run.

Frequently Asked Questions about export-document

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert Markdown to PDF with Chinese government-style formatting?

Converting Markdown to PDF with Chinese government-style formatting requires applying A4 page setup, specific Chinese font mappings for headings and body text, and standardized margins. This Skill automates that pipeline, outputting print-ready institutional documents directly from Markdown drafts.

Can I render Mermaid diagrams when exporting Markdown to DOCX?

Yes, rendering Mermaid diagrams during Markdown to DOCX export is supported. The pipeline automatically processes Mermaid code blocks into embedded images, provided the optional mermaid-cli dependency is installed in your environment.

Do I need pandoc to export print-ready documents from Markdown?

Yes, pandoc is a hard dependency required to export print-ready documents from Markdown. The process stops with a clear warning if pandoc is missing, while other optional features like PDF generation or diagram rendering degrade gracefully.

What is the best way to generate formal construction plans from Markdown drafts?

Generating formal construction plans from Markdown is best handled by an export pipeline that applies institutional formatting standards. This Skill enforces government-style headings, table beautification, and line spacing to produce deliverable-ready DOCX and PDF files.

How does table beautification work for institutional Markdown documents?

Table beautification for institutional Markdown documents improves border styling, header formatting, and overall readability. It applies specific formatting rules during the DOCX export to ensure tables meet formal government document standards.