From f134df6fcb557f9fc64cd2a0254b69d40bbe78d3 Mon Sep 17 00:00:00 2001 From: Thomas Hodgson Date: Mon, 8 May 2017 12:37:43 +0100 Subject: [PATCH] Added Pandoc to the local preview function --- plugin/vim-markdown-preview.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/vim-markdown-preview.vim b/plugin/vim-markdown-preview.vim index d32d1ba..9b02d79 100644 --- a/plugin/vim-markdown-preview.vim +++ b/plugin/vim-markdown-preview.vim @@ -119,6 +119,8 @@ function! Vim_Markdown_Preview_Local() call system('grip "' . b:curr_file . '" --export 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 --smart --standalone "' . b:curr_file . '" > /tmp/vim-markdown-preview.html') else call system('markdown "' . b:curr_file . '" > vim-markdown-preview.html') endif -- 2.45.2