Skip to main content
100%

위키독스 md를 docx로 (위키독스에서 책을 다운로드하면 개별 md 파일에 문서 제목이 사라지므로, 임의의 마크업과 제목을 추가해서 하나로 합친다)

✓ Published0🌍 Public
Aanemochore
Last edited Feb 28, 2022
Created on Feb 28, 2022

This example converts Wikidocs markdown files into a single merged document with properly ordered headings. It reads all `.md` files in a directory, infers heading depth from the numeric prefix in each filename, and inserts a temporary `?#` marker with the depth before merging the contents into `merged.md`. A Pandoc filter written with `panflute` then increments every header level by one (or deletes level-6 headers) before Pandoc converts the merged file to a Word document using a custom reference template.

AI-generated description

Similar vizzes