Last active
March 26, 2025 13:26
-
-
Save stekhn/0b1641f0bef7da8e0619204aa1bf9283 to your computer and use it in GitHub Desktop.
Create a Word document from multiple Markdown files with a table of contents
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ls *.md | sort -V | xargs pandoc --wrap=none --toc --toc-depth=2 --standalone -o output.docx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment