pandoc-docx-export

Export Markdown documents to DOCX using pandoc and Lua filters.

11|1|Updated Mar 27, 2026
One-click install
npx skills add https://github.com/raandree/CopilotAtelier --skill pandoc-docx-export
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pandoc-docx-export
Source: https://github.com/raandree/CopilotAtelier/tree/main/Skills/pandoc-docx-export
Command: npx skills add https://github.com/raandree/CopilotAtelier --skill pandoc-docx-export

SYSTEM DOCUMENTATION & REQUIREMENTS

## What problem does it solve? Converting Markdown into Word documents with precise formatting is tedious; this skill automates the export to DOCX using pandoc, applying custom layouts and a reference style to ensure consistent results.

## Core Features & Use Cases

  • Pandoc-based Markdown to DOCX export with support for landscape pages for wide tables.
  • Custom column widths, reduced table font sizes via a reference document, and OOXML section breaks.
  • Reusable Lua filter logic for advanced formatting and consistent styling in documentation pipelines.

### Quick Start Run pandoc on your Markdown input to produce a DOCX using the Lua filter and reference.docx template.

Frequently Asked Questions about pandoc-docx-export

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

FAQPage Schema
How do I export Markdown to DOCX with landscape pages for wide tables?

Export Markdown to DOCX with landscape pages by running pandoc with a custom Lua filter and a reference document to apply OOXML section breaks around wide tables.

Can I control table column widths and font sizes when converting Markdown to Word?

Control table column widths and font sizes during Markdown to DOCX conversion by defining custom styles in a reference document and applying the formatting rules through a reusable Lua filter.

What is the best way to automate consistent DOCX styling in a documentation pipeline?

Automate consistent DOCX styling in documentation pipelines by using pandoc with a reusable Lua filter approach that applies reference styling and OOXML section breaks to every export.

Does pandoc support custom formatting for Markdown to DOCX conversion without complex templates?

Pandoc supports custom formatting for Markdown to DOCX conversion by pairing a Lua filter with a reference document, enabling precise layouts like landscape tables without building complex templates from scratch.

How do OOXML section breaks work when generating Word documents from Markdown?

OOXML section breaks are injected by a Lua filter during the pandoc export process to separate landscape and portrait pages, ensuring wide tables render correctly within the DOCX file.

Why use a Lua filter for Markdown to DOCX export instead of standard pandoc options?

Use a Lua filter for Markdown to DOCX export to handle advanced formatting like custom column widths and landscape page insertion that standard pandoc options and basic templates cannot achieve.