diff options
author | Ken Kellner <ken@kenkellner.com> | 2019-03-21 11:02:19 -0400 |
---|---|---|
committer | Ken Kellner <ken@kenkellner.com> | 2019-03-21 11:02:19 -0400 |
commit | 9393e843bda6f214337c2ed796a8664c83baaae9 (patch) | |
tree | d748db046bea3e8763f687b2205e43466ee4f7e4 | |
parent | bcb406fe3f8817f7f199e471d26bc222e42270bb (diff) |
Use raw_html extension. Should fix #1
-rw-r--r-- | article_epub/publisher.py | 4 |
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, |