Get AI summaries of any video or article — Sign up free
Exporting your formatted notes to Word thumbnail

Exporting your formatted notes to Word

CombiningMinds·
4 min read

Based on CombiningMinds's video on YouTube. If you like this content, support the original creators by watching, liking and subscribing to their content.

TL;DR

Pandoc can convert Markdown notes into Word (.docx) without rebuilding formatting manually.

Briefing

Converting well-formatted Markdown notes into a shareable Word document doesn’t require redoing formatting from scratch. The practical fix is Pandoc, a “universal document converter” that runs from the command line and can translate Markdown structure into a .docx file while preserving headings, lists, and overall layout.

The workflow starts with having notes already formatted in Logseq (or another Markdown-based system). Once the Markdown file is ready, the user copies the specific Logseq page from the local storage folder and pastes it onto the desktop, renaming it for clarity (for example, “Zettelkasten one”). Opening the resulting Markdown file in a plain text editor can look messy, but that appearance is misleading: the formatting is meant to be interpreted by a converter, not manually rebuilt.

From there, the conversion happens in a terminal. On Windows, the process begins by opening Command Prompt (via the Windows key and typing “cmd”), then changing directories to where the Markdown file lives—typically the desktop—using a command like `cd` to desktop. Pandoc is then invoked with an input Markdown filename and an output Word filename. The command structure is essentially: take the `.md` file as input and produce a `.docx` file as output.

A key detail is that images may not always transfer cleanly. In the example, Pandoc returned an error (“could not fetch resource”) because the Markdown included a picture. The text and structure still converted correctly, and the missing image was the only noticeable gap. The takeaway is straightforward: expect full fidelity for text-based formatting, but verify media handling if your notes include embedded images.

After running the conversion, the resulting Word document appears on the desktop and retains the note’s structure—headings, bulleting, and the “full structure” of the original outline. One additional gotcha involves collapsed sections: if Logseq exports with collapsed state (e.g., a `collapsed = true` attribute), Word may reflect that state. Uncollapsing those sections before exporting helps ensure everything appears expanded in the final document.

Overall, the method turns what feels like a formatting nightmare into a quick, repeatable command-line step: export once, convert with Pandoc, and then share the generated .docx without rebuilding the layout manually.

Cornell Notes

Pandoc provides a fast way to convert Markdown notes (such as Logseq page exports) into a Word document without reformatting everything by hand. The process uses Command Prompt on Windows: copy the Logseq page’s Markdown file to a known folder (like the desktop), `cd` into that folder, then run a Pandoc command that takes the `.md` input and outputs a `.docx`. The converted Word file preserves the note’s structure and formatting for text. Images may fail to import if Pandoc can’t fetch the referenced resource, and collapsed sections may remain collapsed unless they’re expanded before conversion.

What tool makes Markdown-to-Word conversion “super easy” in this workflow?

Pandoc. It’s described as a universal document converter available via pandoc.org, used as a command-line program rather than a desktop app icon. The user downloads Pandoc and runs it from the terminal to translate a Markdown file into a .docx output.

How does the workflow prepare the Markdown file for conversion?

It starts by locating the Logseq page’s locally stored Markdown file, copying that page, and pasting it onto the desktop for simplicity. The file is renamed (e.g., “Zettelkasten one”) so the terminal command uses a clear input filename like `...1.md`.

What are the key terminal steps on Windows before running Pandoc?

Open Command Prompt (Windows key → type `cmd`), then change directory to the desktop using `cd` so the terminal can find the Markdown file. After that, run the Pandoc command that specifies the input Markdown filename and the output Word filename (a `.docx`).

What problem can occur with images during conversion, and what does it affect?

If the Markdown includes an image, Pandoc may fail with an error like “could not fetch resource.” In the example, the text structure converted successfully, but the image did not appear in the Word output. The issue is therefore tied to media/resource fetching rather than the overall conversion.

What Logseq-specific formatting detail can carry over in a way that surprises users?

Collapsed sections. If content is exported with something like `collapsed = true`, the Word output may keep sections collapsed. The advice is to uncollapse items before converting so the Word document shows everything expanded.

Review Questions

  1. What command-line inputs and outputs does the Pandoc conversion step require (file types and where the files live)?
  2. Why might a Word document generated from Markdown be missing images even when headings and lists convert correctly?
  3. What pre-conversion change helps ensure collapsed sections don’t remain collapsed in the exported Word file?

Key Points

  1. 1

    Pandoc can convert Markdown notes into Word (.docx) without rebuilding formatting manually.

  2. 2

    Copy the relevant Logseq page’s Markdown file to a known folder (like the desktop) and rename it for easier command usage.

  3. 3

    Use Command Prompt to `cd` into the folder containing the Markdown file before running Pandoc.

  4. 4

    Expect text structure (headings, lists, outlines) to carry over well into Word.

  5. 5

    Image conversion may fail if Pandoc can’t fetch the referenced resource; check media handling if your notes include pictures.

  6. 6

    Uncollapse sections before exporting if you want them expanded in the Word output rather than retaining `collapsed = true` behavior.

Highlights

Pandoc turns a “formatting nightmare” into a simple command-line conversion from Markdown to .docx.
The converted Word document preserves the note’s structure, even when the raw Markdown looks “funky” in a text editor.
Images can trigger a “could not fetch resource” error, so media needs extra attention compared with text.

Topics

  • Pandoc
  • Markdown to Word
  • Logseq Export
  • Command Line
  • DOCX Conversion