From 993ac6cb3cc91718b28870cf53c6e68ce256d69f Mon Sep 17 00:00:00 2001 From: Robert Cranston <rcrnstn@rcrnstn.net> Date: Thu, 29 Aug 2019 11:00:00 +0200 Subject: [PATCH 5/5] Add MathJax to pandoc output --- plugin/vim-markdown-preview.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/vim-markdown-preview.vim b/plugin/vim-markdown-preview.vim index 2ff9b3d..d80e108 100644 --- a/plugin/vim-markdown-preview.vim +++ b/plugin/vim-markdown-preview.vim @@ -66,7 +66,7 @@ function! Vim_Markdown_Preview() elseif g:vim_markdown_preview_perl == 1 call system('Markdown.pl "' . b:curr_file . '" > /tmp/vim-markdown-preview.html') elseif g:vim_markdown_preview_pandoc == 1 - call system('pandoc --smart --standalone --metadata=title:vim-markdown-preview.html --variable=title: "' . b:curr_file . '" > /tmp/vim-markdown-preview.html') + call system('pandoc --smart --standalone --metadata=title:vim-markdown-preview.html --variable=title: --mathjax "' . b:curr_file . '" > /tmp/vim-markdown-preview.html') else call system('markdown "' . b:curr_file . '" > /tmp/vim-markdown-preview.html') endif @@ -120,7 +120,7 @@ function! Vim_Markdown_Preview_Local() elseif g:vim_markdown_preview_perl == 1 call system('Markdown.pl "' . b:curr_file . '" > vim-markdown-preview.html') elseif g:vim_markdown_preview_pandoc == 1 - call system('pandoc --smart --standalone --metadata=title:vim-markdown-preview.html --variable=title: "' . b:curr_file . '" > vim-markdown-preview.html') + call system('pandoc --smart --standalone --metadata=title:vim-markdown-preview.html --variable=title: --mathjax "' . b:curr_file . '" > vim-markdown-preview.html') else call system('markdown "' . b:curr_file . '" > vim-markdown-preview.html') endif -- 2.17.1