From e3204249fd1f87e004359ed2ef471c349948a16a Mon Sep 17 00:00:00 2001 From: Toban Wiebe Date: Tue, 6 Oct 2015 09:49:08 -0400 Subject: [PATCH 1/4] use non-recursive mapping --- plugin/preview.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/preview.vim b/plugin/preview.vim index 30f86b1..4559ed8 100644 --- a/plugin/preview.vim +++ b/plugin/preview.vim @@ -90,4 +90,4 @@ command! PreviewRonn call s:PreviewRonn() command! PreviewRst call s:PreviewRst() " Default mapping -:nmap P :Preview +:nnoremap P :Preview From ddb66cd1651c4ddac9e95b9b3e5491c2900d6233 Mon Sep 17 00:00:00 2001 From: Toban Wiebe Date: Tue, 6 Oct 2015 09:57:52 -0400 Subject: [PATCH 2/4] updated examples to non-recursive mappings --- doc/preview.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/preview.txt b/doc/preview.txt index 7689a58..e7e6107 100644 --- a/doc/preview.txt +++ b/doc/preview.txt @@ -217,13 +217,13 @@ Preview current file as reStructuredText. Default mapping to preview file is P . You can easy map it to other keys. For example > - :nmap p :Preview + :nnoremap p :Preview < Also you can map some other commands which is not mapped by default. E.g. > - :nmap Pm :PreviewMarkdown - :nmap Pt :PreviewTextile - :nmap Pr :PreviewRdoc - :nmap Ph :PreviewHtml + :nnoremap Pm :PreviewMarkdown + :nnoremap Pt :PreviewTextile + :nnoremap Pr :PreviewRdoc + :nnoremap Ph :PreviewHtml < ============================================================================== From c690e970fd436127ac50a905491b65250991a891 Mon Sep 17 00:00:00 2001 From: Toban Wiebe Date: Tue, 6 Oct 2015 10:08:47 -0400 Subject: [PATCH 3/4] enable mathjax added mathjax javascript to html head --- autoload/preview.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/preview.vim b/autoload/preview.vim index f42059f..248b507 100644 --- a/autoload/preview.vim +++ b/autoload/preview.vim @@ -244,6 +244,9 @@ class Preview #{@base_name} #{css_tag} #{base_tag} +
From 3cde4983c976069cbe54240f4115d75cd31875ca Mon Sep 17 00:00:00 2001 From: Toban Wiebe Date: Mon, 20 Feb 2017 14:21:31 -0500 Subject: [PATCH 4/4] fix list item spacing css was adding margin to each list item. --- stylesheets/preview.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stylesheets/preview.css b/stylesheets/preview.css index 8caad6b..83860e9 100644 --- a/stylesheets/preview.css +++ b/stylesheets/preview.css @@ -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; }