Markdown → Word
Convert Markdown text or a .md file to a .docx Word document, with an optional Obsidian-style colour theme.
ConvertMarkdownToWord
What it does
Convert Markdown text or a .md file to a .docx Word document, with an optional Obsidian-style colour theme.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Markdown text | multiline | Optional | Markdown source. Leave blank to read from a file instead. Example: # Title
Some **bold** text.
- item a
- item b Supports variables | |
| Markdown file / folder / wildcard (optional) | file | Optional | A .md file, a folder (converts every .md inside), or a glob like C:/docs/*.md (use ** for recursive). Overrides the text. Example: C:/docs/*.md Supports variables | |
| Output folder or .docx path (optional) | file | Optional | Folder to write the .docx into, or a full path. The .docx extension is added automatically. Blank = same folder as the source .md (or current folder for pasted text). Example: C:/docs/out Supports variables | |
| Theme | dropdownObsidian Dark · Obsidian Light · Plain | Required | Obsidian Dark | Obsidian-style dark/light reading theme, or a plain black-on-white document. |
| Mermaid diagrams | dropdownAuto · Local (mermaid-cli) · Online (mermaid.ink) · Keep as code | Optional | Auto | How to render ```mermaid code blocks. Auto = local mermaid-cli (mmdc) if installed, else the mermaid.ink web service. 'Online' sends the diagram source to mermaid.ink. 'Keep as code' leaves it as a plain code block. |
| Font | dropdownNoto Sans JP · Calibri · Yu Gothic · Meiryo · MS Gothic · Arial · Segoe UI · Times New Roman | Optional | Noto Sans JP | Body/heading font. 'Noto Sans JP' (default) covers Latin + Japanese; Latin-only fonts keep a Japanese fallback. |
| Body font size (pt) | number | Optional | 9 | Base size; headings scale relative to it. |
| Line spacing | number | Optional | 1.08 | e.g. 1.0, 1.15, 1.5 |
| Page size | dropdownLetter · A4 · Legal | Optional | Letter | |
| Orientation | dropdownPortrait · Landscape | Optional | Portrait | |
| Margin top (inch) | number | Optional | 0.7 | |
| Margin bottom (inch) | number | Optional | 0.7 | |
| Margin left (inch) | number | Optional | 0.4 | |
| Margin right (inch) | number | Optional | 0.4 | |
| Page numbers in footer | dropdownNo · Yes | Optional | No | |
| Store output path in | variable | Optional | Example: docPath |
More Convert commands
Ready to automate your busywork?
Start your free 10-day trial today. No credit card, no commitment.