Include TOCs in Markdown exports by default

I usually want those.  This setting can be overwritten by
customizations.
This commit is contained in:
Daniel Borchmann 2024-09-19 15:46:02 +02:00
parent f54c39fe52
commit bc4e163ac5
No known key found for this signature in database
GPG Key ID: 784AA8DF0CCDF625

View File

@ -2867,7 +2867,7 @@ eventuelly be set to nil, however)."
:commands (markdown-mode)
:init (progn
(setq markdown-use-pandoc-style-yaml-metadata t
markdown-command "pandoc --standalone"
markdown-command "pandoc --standalone --toc"
markdown-fontify-code-blocks-natively t)
(fset 'markdown-output-standalone-p #'(lambda () t))
(add-hook 'markdown-mode-hook #'turn-off-auto-fill)