Skip to content

Commit

Permalink
Add utf-8 header to markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernd Schmidt committed Mar 18, 2019
1 parent e4fe7b9 commit 59b5424
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/vim-markdown-preview.vim
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ 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('echo "<head><title>vim-markdown-preview.html</title></head>" > /tmp/vim-markdown-preview.html')
call system('echo "<head><title>vim-markdown-preview.html</title><meta charset="utf-8"/></head>" > /tmp/vim-markdown-preview.html')
call system('markdown "' . b:curr_file . '" >> /tmp/vim-markdown-preview.html')
endif
if v:shell_error
Expand Down

0 comments on commit 59b5424

Please sign in to comment.