@@ 30,9 30,9 @@ function! Vim_Markdown_Preview()
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 /tmp/vim-markdown-preview.html')
else
- call system('markdown ' . curr_file . ' > /tmp/vim-markdown-preview.html')
+ call system('markdown "' . curr_file . '" > /tmp/vim-markdown-preview.html')
endif
if OSNAME == 'unix'
@@ 78,9 78,9 @@ function! Vim_Markdown_Preview_Local()
let curr_file = expand('%:p')
if b:vim_markdown_preview_github == 1
- call system('grip ' . curr_file . ' --export ' . curr_file . '.html')
+ call system('grip "' . curr_file . '" --export ' . curr_file . '.html')
else
- call system('markdown ' . curr_file . ' > ' . curr_file . '.html')
+ call system('markdown "' . curr_file . '" > ' . curr_file . '.html')
endif