From 43a46c427129a67e51e7a43a9aab9ac0052bea53 Mon Sep 17 00:00:00 2001 From: Paul Alesius Date: Wed, 3 Jan 2024 08:35:00 +0100 Subject: [PATCH] Fix: broken SUMMARY.md gen --- batch.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/batch.el b/batch.el index 6f8cc03..4f4135e 100644 --- a/batch.el +++ b/batch.el @@ -46,7 +46,9 @@ (split-string (buffer-string) "\n" t))) toc-items) (with-temp-file summary-org-path - (insert "* Summary\n") + ;; Inserting a headline creates a TOC in the Org export to Markdown, which + ;; makes the resulting SUMMARY.md incompatible with mdbook. + ;;(insert "* Summary\n") (dolist (line toc-lines) (let* ((items (split-string line ":")) (item-len (1- (length items)))