updated deprecated pandoc methods in the preview

gh-pages
somas95 2018-04-12 02:23:07 +02:00
parent 35226904f9
commit 3d5df42720
1 changed files with 6 additions and 5 deletions

View File

@ -693,14 +693,15 @@ class UberwriterWindow(Window):
# self.TextBuffer.insert_at_cursor('<span id="scroll_mark"></span>')
# 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)