Skip to content

Commit

Permalink
HTML writer: Omit footnotes from TOC entries.
Browse files Browse the repository at this point in the history
Otherwise we get doubled footnotes when headers have notes!
  • Loading branch information
jgm committed Jan 6, 2014
1 parent 3dd1b1f commit 2dd6d89
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Text/Pandoc/Writers/HTML.hs
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,9 @@ inlineToHtml opts inline =
else [A.title $ toValue tit])
return $ foldl (!) H5.embed attributes
-- note: null title included, as in Markdown.pl
(Note contents) -> do
(Note contents)
| writerIgnoreNotes opts -> return mempty
| otherwise -> do
st <- get
let notes = stNotes st
let number = (length notes) + 1
Expand Down

0 comments on commit 2dd6d89

Please sign in to comment.