referencing included files in pandoc markdown for docx output

I have multiple markdown files to become a Word doc:

pandoc -f markdown --toc -o out.docx
file1.md
dirA\file2.md
dirB\file3.md

If you specify multiple input files, they are actually concatenated by the shell and then passed to pandoc. So no, the input file names don't come into play (which is counter-intuitive for HTML, but makes a lot of sense for docx output).

https://stackoverflow.com/questions/45070144/referencing-included-files-in-pandoc-markdown-for-docx-output

posted @ 2023-10-28 15:01  ChrainY  阅读(4)  评论(0编辑  收藏  举报