~dricottone/vim-markdown-preview

54876840f68eb267e29aef96f535c45b0e8249ab — JamshedVesuna 9 years ago 83efd46
Added GitHub markdown to image preview mapping
1 files changed, 6 insertions(+), 1 deletions(-)

M plugin/vim-markdown-preview.vim
M plugin/vim-markdown-preview.vim => plugin/vim-markdown-preview.vim +6 -1
@@ 72,7 72,12 @@ function! Vim_Markdown_Preview_Local()
  endif

  let curr_file = expand('%:p')
  call system('markdown ' . curr_file . ' > ' . curr_file . '.html')

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

  if OSNAME == 'unix'
    let chrome_wid = system("xdotool search --name '". curr_file . ".html - " . b:vim_markdown_preview_browser . "'")