Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
38cad81050 |
@ -65,6 +65,10 @@ class PandocReader(BaseReader):
|
||||
bib_header = self.settings.get('PANDOC_BIBHEADER', None)
|
||||
|
||||
filters = self.settings.get('PANDOC_FILTERS', [])
|
||||
extensions = self.settings.get('PANDOC_EXTENSIONS', '')
|
||||
if isinstance(extensions, list):
|
||||
extensions = ''.join(extensions)
|
||||
|
||||
extra_args = self.settings.get('PANDOC_ARGS', [])
|
||||
extensions = self.settings.get('PANDOC_EXTENSIONS', '')
|
||||
if isinstance(extensions, list):
|
||||
@ -86,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,
|
||||
|
Loading…
Reference in New Issue
Block a user