What stands out in Pandoc
Pandoc is particularly useful when the words and the final look belong to different people. A workshop organizer can maintain a small Markdown handout while a colleague needs a Word file with house styles. Pandoc reads structural elements such as headings, lists, and links, then writes their counterparts in DOCX. The valuable test is whether a colleague can still navigate the outline and restyle a heading after conversion. Visual resemblance at first glance is insufficient.
Walkthrough
- Create a text file named handout.md in a working folder. Start major sections with a hash mark and a space and use two hash marks for subsections. Include a short list and an ordinary link. Use sample content with at least one long heading so line wrapping gets tested.
- From that folder, run pandoc handout.md -o handout.docx. Open the result in a word processor and inspect its navigation pane or heading list. Verify that both the major section and its subsection have the intended levels and the list actually behaves like a list.
- Make a copy of the resulting file named house.docx and modify a named style such as Heading 1 in that copy. Save it. Run pandoc handout.md --reference-doc=house.docx -o handout-styled.docx to make a fresh handout that uses the reference's style definitions.
- Open the styled file and change one heading via its style controls. Check the other headings at that level. Then add a new section in the Markdown source and regenerate to a different filename. The new section should acquire the same treatment without manual formatting.
Field tip
Reserve a filename for the source of truth. If reviewers edit the DOCX, incorporate their decisions into the Markdown before regenerating. Otherwise a perfectly successful conversion can silently discard an afternoon of edits that exist in the review copy alone.
Where it falls short
A reference document contributes styles and document properties. It is a poor place to keep a paragraph you expect to appear automatically in every new handout. Put recurring instructional text in the source and inspect complex tables separately after conversion.
Try it yourself
Try a two-section handout, “Before You Arrive” and “At the Check-in Desk,” with a Bring Along subsection under the first. Change the Heading 1 color in the reference. The resulting file should have two recolored headings, one distinct subsection, and an unchanged packing list.