pandoc: Always with --self-contained
[vimconf.git] / macros.vim
index 1397f0f3f580b08d579c5c564cb5cebada048d98..dd0b28dd605d6cfc81db27bbb59e35b7bc386ed7 100644 (file)
@@ -90,10 +90,10 @@ function RunPandoc()
   " If pandoc.css exists, use it
   let cssopts = ""
   if findfile("pandoc.css", ".") == "pandoc.css"
-    let cssopts = "-c pandoc.css --self-contained"
+    let cssopts = "-c pandoc.css"
   endif
 
-  execute ":!pandoc " . cssopts . " --toc " . @% . " -o " . @% . ".html"
+  execute ":!pandoc " . cssopts . " --self-contained --toc " . @% . " -o " . @% . ".html"
 endfunction