From e4fe7b9da8ae6b56370ebe0eddb4c70543dd81cc Mon Sep 17 00:00:00 2001 From: Bernd Schmidt Date: Mon, 11 Mar 2019 22:36:37 +0100 Subject: [PATCH] Add header for default markdown conversion --- plugin/vim-markdown-preview.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/vim-markdown-preview.vim b/plugin/vim-markdown-preview.vim index 082c69f..9fc6e00 100644 --- a/plugin/vim-markdown-preview.vim +++ b/plugin/vim-markdown-preview.vim @@ -68,7 +68,8 @@ function! Vim_Markdown_Preview() elseif g:vim_markdown_preview_pandoc == 1 call system('pandoc --standalone "' . b:curr_file . '" > /tmp/vim-markdown-preview.html') else - call system('markdown "' . b:curr_file . '" > /tmp/vim-markdown-preview.html') + call system('echo "vim-markdown-preview.html" > /tmp/vim-markdown-preview.html') + call system('markdown "' . b:curr_file . '" >> /tmp/vim-markdown-preview.html') endif if v:shell_error echo 'Please install the necessary requirements: https://github.com/JamshedVesuna/vim-markdown-preview#requirements'