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>') # self.TextBuffer.insert_at_cursor('<span id="scroll_mark"></span>')
# TODO # TODO
# Find a way to find the next header, scroll to the next header. # Find a way to find the next header, scroll to the next header.
# TODO: provide a local version of mathjax
args = ['pandoc', args = ['pandoc',
'-s',
'--from=markdown', '--from=markdown',
'-smart', '--to=html',
'-thtml',
'--mathjax', '--mathjax',
'--lua-filter=' + helpers.get_media_path('task-list.lua'), '--css=' + helpers.get_media_path('uberwriter.css'),
'-c', helpers.get_media_file('uberwriter.css')] '--lua-filter=' + helpers.get_media_path('task-list.lua')]
print(args) print(args)
p = subprocess.Popen(args, stdin=subprocess.PIPE, stdout=subprocess.PIPE) p = subprocess.Popen(args, stdin=subprocess.PIPE, stdout=subprocess.PIPE)