Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom TOC template for Markdown-to-ePub using Pandoc

Tags:

pandoc

epub

I'm converting Markdown files to ePub using Pandoc. I'm able to customize the auto-generated title page by using the --template option.

Now I'm trying to do the same with the auto-generated table of contents. Is this possible?

I'm able to apply styles to it by using the #toc-title identifier. But I also need to add custom content to the TOC page. How do I do that with Pandoc?

Help please.

Thanks!

like image 543
Peterson Salamat Avatar asked Oct 31 '22 18:10

Peterson Salamat


1 Answers

I haven't been able to solve this either. Instead I'm creating a custom Table of Contents page and using internal links to populate the TOC: http://johnmacfarlane.net/pandoc/README.html#internal-links

like image 126
Lee Carlon Avatar answered Nov 09 '22 07:11

Lee Carlon