~dricottone/vim-markdown-preview

f134df6fcb557f9fc64cd2a0254b69d40bbe78d3 — Thomas Hodgson 7 years ago 261d88f
Added Pandoc to the local preview function
1 files changed, 2 insertions(+), 0 deletions(-)

M plugin/vim-markdown-preview.vim
M plugin/vim-markdown-preview.vim => plugin/vim-markdown-preview.vim +2 -0
@@ 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