~dricottone/vim-markdown-preview

5234b61618c1db05afd5f8dbe4f753541d0ddef1 — JamshedVesuna 9 years ago 17b2caa
Fixed image rendering markdown path
1 files changed, 3 insertions(+), 2 deletions(-)

M plugin/vim-markdown-preview.vim
M plugin/vim-markdown-preview.vim => plugin/vim-markdown-preview.vim +3 -2
@@ 74,9 74,10 @@ function! Vim_Markdown_Preview_Local()
  let curr_file = expand('%:p')

  if b:vim_markdown_preview_github == 1
    call system('grip ' . curr_file . ' --export /tmp/vim-markdown-preview.html')
    call system('grip ' . curr_file . ' --export ' . curr_file . '.html')
  else
    call system('markdown ' . curr_file . ' > /tmp/vim-markdown-preview.html')
    call system('markdown ' . curr_file . ' > ' . curr_file . '.html')

  endif

  if OSNAME == 'unix'