Pandoc DOCX Template
Converts your Markdown notes into neatly formatted Word documents using Chinese layout templates, and turns Word files back into Markdown.
What it is
Pandoc DOCX Template helps people who write in Markdown, for example in Obsidian, Typora or SiYuan, hand in proper Word files. It uses Pandoc, a free document converter, together with seven ready-made Word templates designed around Chinese layout habits. It suits students, researchers and office workers who draft in plain text but have to submit .docx files, including SCI-style journal manuscripts. It also works in reverse, turning Word documents into Markdown.
Pandoc's default Word output looks plain and ignores Chinese typesetting conventions. This skill brings templates with or without numbered headings, with wrapped list lines either indented or flush left, one without first-line paragraph indents, and two SCI paper templates with double line spacing and line numbers. It converts Markdown to HTML first and then to Word, which keeps subscripts, superscripts and image tags intact, and adds small filters that turn image titles into figure captions, keep colored text and style inline code.
You end up with a .docx that already has the template's fonts, spacing and heading styles, or a Markdown file with its images saved in a folder. The templates were tested mainly with Microsoft Word on Windows and may look different in WPS or Word for Mac. Template names and most of the documentation are in Chinese.
What it can do
- Exports Markdown to Word with one of seven Chinese layout templates, including two for SCI journal papers.
- Lets you choose numbered or unnumbered headings and whether wrapped list lines are indented.
- Keeps HTML inside Markdown, such as subscripts, superscripts and image tags, by converting through HTML first.
- Turns image titles into Word figure captions, with optional numbering, and keeps colored text.
- Gives inline code its own Word style, separate from code blocks.
- Converts Word files back into Markdown and saves embedded images to a folder.
When to use it
- You wrote a thesis chapter in Obsidian and your supervisor wants a Word file with proper Chinese formatting.
- You are submitting a manuscript to an SCI journal that asks for double spacing and line numbers.
- Your weekly report lives in Typora, but your office only accepts .docx files.
- Someone sent you a Word document and you want it as Markdown, images included, for your notes.
How it works
- 1Checks that Pandoc is installed on your computer.
- 2Confirms the direction, Markdown to Word or Word to Markdown, and picks a template, defaulting to unnumbered headings with flush-left list lines.
- 3Runs its bundled Python script, which converts the Markdown to HTML and then to Word using the chosen template and filters.
- 4For Word to Markdown, runs a second script that writes GitHub-style Markdown and extracts the images.
- 5Confirms the output file exists and reports any Pandoc errors; if the scripts cannot run, it calls Pandoc directly.
Try asking
How to install
Install with the skills CLI (recommended)
Works with Claude Code, Codex, Cursor, OpenCode and other agents, and asks which ones to install to. Needs Node.js 22.20+. Add -g to make it available in every project.
npx skills add Achuan-2/pandoc_docx_template
pnpm dlx skills add Achuan-2/pandoc_docx_template
Install manually
Copies the skill folder into Claude Code's personal skills directory. For claude.ai, zip the pandoc_docx_template folder and upload it in the Skills section of Settings.
git clone --depth 1 https://github.com/Achuan-2/pandoc_docx_template.git ~/.claude/skills/pandoc_docx_template
Then just ask in plain language, for example: “Convert report.md to Word using the numbered-headings template.”
More Office & Documents skills
PPT Master
73kTurns documents, topics or slide images into natively editable PowerPoint decks, and can restyle, refill or narrate decks you already have.
Employment Contract Templates
42kDrafts offer letters, employment agreements and employee handbook policies from fill-in templates, ready for a lawyer to review.
Startup Metrics Framework
42kCalculates and benchmarks the startup numbers investors ask about, from CAC, LTV and burn multiple to retention, GMV and sales pipeline.