mirror of
https://github.com/larstvei/ox-gfm.git
synced 2025-01-18 21:20:13 +00:00
org-gfm-toc: Wrap the TOC in a div for styling
This commit is contained in:
parent
4f774f13d3
commit
578cb33b4f
10
ox-gfm.el
10
ox-gfm.el
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user