Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions autoload/preview.vim
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,9 @@ class Preview
<title>#{@base_name}</title>
#{css_tag}
#{base_tag}
<script type="text/javascript"
src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
</head>
<body>
<div id="main-container">
Expand Down
10 changes: 5 additions & 5 deletions doc/preview.txt
Original file line number Diff line number Diff line change
Expand Up @@ -217,13 +217,13 @@ Preview current file as reStructuredText.

Default mapping to preview file is <Leader>P .
You can easy map it to other keys. For example >
:nmap <Leader>p :Preview<CR>
:nnoremap <Leader>p :Preview<CR>
<
Also you can map some other commands which is not mapped by default. E.g. >
:nmap <Leader>Pm :PreviewMarkdown<CR>
:nmap <Leader>Pt :PreviewTextile<CR>
:nmap <Leader>Pr :PreviewRdoc<CR>
:nmap <Leader>Ph :PreviewHtml<CR>
:nnoremap <Leader>Pm :PreviewMarkdown<CR>
:nnoremap <Leader>Pt :PreviewTextile<CR>
:nnoremap <Leader>Pr :PreviewRdoc<CR>
:nnoremap <Leader>Ph :PreviewHtml<CR>
<

==============================================================================
Expand Down
2 changes: 1 addition & 1 deletion plugin/preview.vim
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ command! PreviewRonn call s:PreviewRonn()
command! PreviewRst call s:PreviewRst()

" Default mapping
:nmap <Leader>P :Preview<CR>
:nnoremap <Leader>P :Preview<CR>
2 changes: 1 addition & 1 deletion stylesheets/preview.css
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ h6 {
font-size: 14px;
}

p, blockquote, ul, ol, dl, li, table, pre {
p, blockquote, ul, ol, dl, table, pre {
margin: 15px 0;
}

Expand Down