Custom TOC Template for Markdown-to-ePub Using Pandoc

I am converting Markdown files to ePub using Pandoc. I can customize the automatically generated cover page using the option --template.

Now I'm trying to do the same with an automatically generated table of contents. Is it possible?

I can apply styles to it using an identifier #toc-title. But I also need to add custom content to the TOC page. How to do it with Pandoc?

Help me please.

Thank!

+4
source share

All Articles