pandoc-docx-export
Export Markdown documents to polished DOCX files using pandoc with custom formatting: landscape pages for wide tables, custom column widths, reduced table font sizes, and proper reference.docx styling. Covers pandoc Lua filter authoring, OOXML section breaks, reference document customization, and common gotchas. USE FOR: convert markdown to docx, export to Word, pandoc export, markdown to Word, landscape tables, docx formatting, pandoc Lua filter, table column widths, table font size docx, reference.docx, block quote shading docx, inline code background Word, grey highlight lost in Word, w:shd, VerbatimChar, BlockText, mixed orientation docx, wide table formatting, pandoc Word export, document export, emoji shortcodes docx, GitHub emoji to Unicode, emoji in Word export, mermaid diagram docx, render mermaid to image, mermaid flowchart Word, mermaid Gantt chart image. DO NOT USE FOR: converting docx to markdown, PDF export (use LaTeX/weasyprint), HTML export, general pandoc usage without Word output.
- Compatibility
- Requires pandoc 3+ for Lua filters and reference.docx styling. Mermaid diagram rendering additionally requires mermaid-cli.
Pinned to revision 7a186c5dfcf8, so it is the text this page describes rather than whatever the author pushed since.
Files
Every link opens the file at its source, pinned to the revision this page describes.