From bc4e163ac5b42831312e60f00ad580bce3f6cfe7 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Thu, 19 Sep 2024 15:46:02 +0200 Subject: [PATCH] Include TOCs in Markdown exports by default I usually want those. This setting can be overwritten by customizations. --- init.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.el b/init.el index 3f91d18..7683970 100644 --- a/init.el +++ b/init.el @@ -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)