Compare commits

...

1 Commits
fix ... toc

Author SHA1 Message Date
38cad81050 Create table of contents if toc metadata key is set 2019-04-25 14:46:21 +03:00

View File

@ -90,6 +90,10 @@ class PandocReader(BaseReader):
'--metadata=reference-section-title="{}"'.format(
bib_header)]
if "toc" in metadata.keys():
if metadata['toc'] == True:
pandoc_cmd.extend(['--toc'])
proc = subprocess.Popen(
pandoc_cmd,
stdin=subprocess.PIPE,