From 3d5df42720e9063c086981cde84ef310a264c189 Mon Sep 17 00:00:00 2001 From: somas95 Date: Thu, 12 Apr 2018 02:23:07 +0200 Subject: [PATCH] updated deprecated pandoc methods in the preview --- uberwriter/UberwriterWindow.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/uberwriter/UberwriterWindow.py b/uberwriter/UberwriterWindow.py index a6fbbf1..6900b8d 100644 --- a/uberwriter/UberwriterWindow.py +++ b/uberwriter/UberwriterWindow.py @@ -693,14 +693,15 @@ class UberwriterWindow(Window): # self.TextBuffer.insert_at_cursor('') # TODO # Find a way to find the next header, scroll to the next header. - + # TODO: provide a local version of mathjax + args = ['pandoc', + '-s', '--from=markdown', - '-smart', - '-thtml', + '--to=html', '--mathjax', - '--lua-filter=' + helpers.get_media_path('task-list.lua'), - '-c', helpers.get_media_file('uberwriter.css')] + '--css=' + helpers.get_media_path('uberwriter.css'), + '--lua-filter=' + helpers.get_media_path('task-list.lua')] print(args) p = subprocess.Popen(args, stdin=subprocess.PIPE, stdout=subprocess.PIPE)