From 2fdb5b20b2cf6ef151609ac8b2048ed21f71f0ce Mon Sep 17 00:00:00 2001 From: Dan MacKinlay Date: Fri, 22 Feb 2019 21:02:27 +1100 Subject: [PATCH] perfucntory attempt to handle bibliography --- pandoc_reader.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pandoc_reader.py b/pandoc_reader.py index c960d4f..fd66158 100644 --- a/pandoc_reader.py +++ b/pandoc_reader.py @@ -4,7 +4,7 @@ import subprocess from pelican import signals from pelican.readers import BaseReader from pelican.utils import pelican_open - +import os try: import yaml @@ -60,6 +60,15 @@ class PandocReader(BaseReader): text = list(fp.splitlines()) metadata, content = self._get_meta_and_content(text) + bib_dir = self.settings.get('PANDOC_BIBDIR', '') + + 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', '')