From a992ce6b17e691dc949186cbc8d468195c865fd6 Mon Sep 17 00:00:00 2001 From: Thomas Hodgson Date: Fri, 5 May 2017 22:14:34 +0100 Subject: [PATCH] Added pandoc support --- plugin/vim-markdown-preview.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugin/vim-markdown-preview.vim b/plugin/vim-markdown-preview.vim index b0d33fa..75d1d1f 100644 --- a/plugin/vim-markdown-preview.vim +++ b/plugin/vim-markdown-preview.vim @@ -46,6 +46,10 @@ if !exists("g:vim_markdown_preview_perl") let g:vim_markdown_preview_perl = 0 endif +if !exists("g:vim_markdown_preview_pandoc") + let g:vim_markdown_preview_pandoc = 0 +endif + if !exists("g:vim_markdown_preview_use_xdg_open") let g:vim_markdown_preview_use_xdg_open = 0 endif @@ -61,6 +65,8 @@ function! Vim_Markdown_Preview() call system('grip "' . b:curr_file . '" --export /tmp/vim-markdown-preview.html --title vim-markdown-preview.html') 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 "' . b:curr_file . '" > /tmp/vim-markdown-preview.html') else call system('markdown "' . b:curr_file . '" > /tmp/vim-markdown-preview.html') endif -- 2.45.2