From 54876840f68eb267e29aef96f535c45b0e8249ab Mon Sep 17 00:00:00 2001 From: JamshedVesuna Date: Mon, 25 May 2015 17:56:04 -0700 Subject: [PATCH] Added GitHub markdown to image preview mapping --- plugin/vim-markdown-preview.vim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugin/vim-markdown-preview.vim b/plugin/vim-markdown-preview.vim index 211f2f0..f265b90 100644 --- a/plugin/vim-markdown-preview.vim +++ b/plugin/vim-markdown-preview.vim @@ -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 . "'") -- 2.45.2