summaryrefslogtreecommitdiff
path: root/panfry/document.py
diff options
context:
space:
mode:
Diffstat (limited to 'panfry/document.py')
-rwxr-xr-xpanfry/document.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/panfry/document.py b/panfry/document.py
index 09a728d..5fdd05c 100755
--- a/panfry/document.py
+++ b/panfry/document.py
@@ -262,6 +262,10 @@ class Document(object):
doc = pandoc.Document()
doc.markdown = src
+ css = os.path.abspath(os.path.join(self.template_path, 'epub.css'))
+ if os.path.isfile(css):
+ print(css)
+ doc.add_argument('epub-stylesheet=%s' % css)
print("epub_path: %s" % epub_path)
pandoc.set_cwd(os.path.abspath(self.src_path))
for option in self.pandoc_options: