Pandoc filter to insert page break or table-of-contents in docx file
pip3 install git+https://github.com/pandocker/pandoc-docx-pagebreak-py- Add
\newpagewhere preferred to insert a page break- Expecting to work like native pandoc behavior for latex output
- Add
\tocwhere preferred to insert TOC(Table of Contents)- unable to use with
--tocotherwise TOC appears on head of document also
- unable to use with
# Try the filter with this file like this:
pandoc -f markdown -t docx -o docx.docx --filter=pandoc-docx-pagebreakpy README.mdTable of contents appears after this line
\toc
Contents before pagebreak
\newpage
Contents after _Page Break_Table of contents appears after this line
\toc
Contents before pagebreak
\newpage
Contents after Page Break