git.iko.soy/typeable/pandoc
on master help sign in
Put table of contents in its own div (id="toc").
6f4017bfiddlosopher
src/Text/Pandoc/Writers/HTML.hs+1−1
@@ -100,7 +100,7 @@ tableOfContents opts headers ids =
100 contentsTree = hierarchicalize headers
100 contentsTree = hierarchicalize headers
101 contents = evalState (mapM (elementToListItem opts') contentsTree)
101 contents = evalState (mapM (elementToListItem opts') contentsTree)
102 ([],ids)
102 ([],ids)
103− in unordList ! [identifier "toc"] $ contents
103+ in thediv ! [identifier "toc"] $ unordList contents
104
104
105-- | Converts an Element to a list item for a table of contents,
105-- | Converts an Element to a list item for a table of contents,
106-- retrieving the appropriate identifier from state.
106-- retrieving the appropriate identifier from state.