Skip to content

Instantly share code, notes, and snippets.

@HarshitRuwali
HarshitRuwali / obsidian-docx.md
Last active April 8, 2024 01:30
Export Obsidian/Markdown notes to docx

Firstly use obsidian-export to export the Obsidian Vault/Notes to regular markdown files.

Once after exporting in the regular markdown format use the following script to convert the markdown to docx. This will require Pandoc.

pandoc md-file.md \
-o out-docx-file.docx \
--from markdown+yaml_metadata_block+raw_html \
--top-level-division=chapter