git.iko.soy/typeable/pandoc
on master help sign in
Put table of contents in its own div (id="toc").

git-svn-id: https://pandoc.googlecode.com/svn/trunk@635 788f1e2b-df1e-0410-8736-df70ead52e1b

commit6f4017b8ea7b75d0511f5b37ca3f58346315a071 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateSat 7 Jul 2007, 21:49 (19 years ago) parent54a0e4c
1 file changed+1−1
src/Text/Pandoc/Writers/HTML.hs+1−1
src/Text/Pandoc/Writers/HTML.hs+1−1
@@ -100,7 +100,7 @@ tableOfContents opts headers ids =
100100 contentsTree = hierarchicalize headers
101101 contents = evalState (mapM (elementToListItem opts') contentsTree)
102102 ([],ids)
103− in unordList ! [identifier "toc"] $ contents
103+ in thediv ! [identifier "toc"] $ unordList contents
104104
105105-- | Converts an Element to a list item for a table of contents,
106106-- retrieving the appropriate identifier from state.