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.
This commit is contained in:
Daniel - 2020-12-20 17:29:14 +01:00
parent 6e23836a1d
commit 29ab4d6335
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 4 additions and 2 deletions

View File

@ -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))