Fixed bug in TOC generation in HTML writer (regression,
introduced by the revision in the WriterState type). git-svn-id: https://pandoc.googlecode.com/svn/trunk@793 788f1e2b-df1e-0410-8736-df70ead52e1b
This commit is contained in:
parent
ae009fab46
commit
6c8bb8e9a3
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ tableOfContents opts headers ids =
|
|||
let opts' = opts { writerIgnoreNotes = True }
|
||||
contentsTree = hierarchicalize headers
|
||||
contents = evalState (mapM (elementToListItem opts') contentsTree)
|
||||
(WriterState {stNotes= [], stIds = [], stHead = []})
|
||||
(WriterState {stNotes= [], stIds = ids, stHead = []})
|
||||
in thediv ! [identifier "toc"] $ unordList contents
|
||||
|
||||
-- | Converts an Element to a list item for a table of contents,
|
||||
|
|
Loading…
Reference in a new issue