From 9393e843bda6f214337c2ed796a8664c83baaae9 Mon Sep 17 00:00:00 2001 From: Ken Kellner Date: Thu, 21 Mar 2019 11:02:19 -0400 Subject: Use raw_html extension. Should fix #1 --- article_epub/publisher.py | 4 ++-- 1 file 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, -- cgit v1.2.3