Created
June 16, 2026 21:02
-
-
Save stekhn/dd996852969c405e0e370d329ab61c48 to your computer and use it in GitHub Desktop.
Create a Markdown document (GFM) 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 -t gfm -o doc.md |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment