Skip to content

Commit

Permalink
Add header for default markdown conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernd Schmidt committed Mar 11, 2019
1 parent 9b3ec41 commit e4fe7b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin/vim-markdown-preview.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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 "<head><title>vim-markdown-preview.html</title></head>" > /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'
Expand Down

0 comments on commit e4fe7b9

Please sign in to comment.