aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Kellner <ken@kenkellner.com>2019-03-21 11:02:19 -0400
committerKen Kellner <ken@kenkellner.com>2019-03-21 11:02:19 -0400
commit9393e843bda6f214337c2ed796a8664c83baaae9 (patch)
treed748db046bea3e8763f687b2205e43466ee4f7e4
parentbcb406fe3f8817f7f199e471d26bc222e42270bb (diff)
Use raw_html extension. Should fix #1
-rw-r--r--article_epub/publisher.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/article_epub/publisher.py b/article_epub/publisher.py
index 1cc0562..8f67f78 100644
--- a/article_epub/publisher.py
+++ b/article_epub/publisher.py
@@ -143,7 +143,7 @@ class Publisher(object):
args.append('title="'+self.title+'"')
args.append('-M')
args.append('author="'+all_authors+'"')
- args.append('--parse-raw')
+ #args.append('--parse-raw')
args.append('--webtex')
if output == None:
@@ -160,7 +160,7 @@ class Publisher(object):
combined += str(self.references)
print('Generating epub.............',end='',flush=True)
- epubout = pypandoc.convert_text(combined,format='html',to='epub',
+ epubout = pypandoc.convert_text(combined,format='html',to='epub+raw_html',
extra_args=args,
outputfile=output_raw)
subprocess.check_output(['ebook-convert',output_raw,self.output,