From 29ab4d633556b381241f5eea6cce5d52472c3d27 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sun, 20 Dec 2020 17:29:14 +0100 Subject: [PATCH] Always create standalone documents from markdown files It's confusing me that the output of pandoc is a document fragment by default, so let's instruct Emacs to generated complete, standalone documents instead. --- init.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/init.el b/init.el index 4968de4..48c120d 100644 --- a/init.el +++ b/init.el @@ -2915,8 +2915,10 @@ With given ARG, display files in `db/important-document-path’." (use-package markdown-mode :ensure t :commands (markdown-mode) - :init (setq markdown-use-pandoc-style-yaml-metadata t - markdown-command "pandoc")) + :init (progn + (setq markdown-use-pandoc-style-yaml-metadata t + markdown-command "pandoc --standalone") + (fset 'markdown-output-standalone-p #'(lambda () t)))) (use-package pdf-occur :commands (pdf-occur-global-minor-mode))