From b5bbc2d22afe45ab7b0870c640a77885e3649a97 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 17 May 2017 20:49:58 +0100 Subject: [PATCH] Allow toggling of toc --- md_pdf/build/pdf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/md_pdf/build/pdf.py b/md_pdf/build/pdf.py index 9c26923..b498b5d 100644 --- a/md_pdf/build/pdf.py +++ b/md_pdf/build/pdf.py @@ -49,6 +49,6 @@ def export_pdf(content, config): os.path.join(os.path.abspath(config['output_dir']), 'output.pdf'), options=PDF_OPTIONS, cover=FILE_NAME_FORMAT.format('cover'), - toc=TOC_OPTIONS, + toc=TOC_OPTIONS if config['toc'] else {}, cover_first=True )