This commit is contained in:
Vedang Manerikar 2025-01-02 10:16:24 +05:30 committed by GitHub
commit df6c9c43bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -266,8 +266,14 @@ holding export options."
(org-gfm-format-toc headline info)) (org-gfm-format-toc headline info))
headlines "\n") headlines "\n")
"")) ""))
(toc-tail (if headlines "\n\n" ""))) (toc-head (if headlines "<div class=\"orgtoc\">\n" ""))
(org-trim (concat toc-string toc-tail contents "\n" (org-gfm-footnote-section info))))) (toc-tail (if headlines "\n</div>\n\n" "")))
(org-trim (concat toc-head
toc-string
toc-tail
contents
"\n"
(org-gfm-footnote-section info)))))
;;; Interactive function ;;; Interactive function