diff --git a/ox-gfm.el b/ox-gfm.el index 84665cb..6d50487 100644 --- a/ox-gfm.el +++ b/ox-gfm.el @@ -266,8 +266,14 @@ holding export options." (org-gfm-format-toc headline info)) headlines "\n") "")) - (toc-tail (if headlines "\n\n" ""))) - (org-trim (concat toc-string toc-tail contents "\n" (org-gfm-footnote-section info))))) + (toc-head (if headlines "