HTML writer: Omit footnotes from TOC entries.
Otherwise we get doubled footnotes when headers have notes!
commit2dd6d892fa310135cece1d8e6d6bac7b538f4e76
authorJohn MacFarlane <jgm@berkeley.edu>
dateMon 6 Jan 2014, 10:17 (13 years ago)
parent3dd1b1f
src/Text/Pandoc/Writers/HTML.hs+3−1
@@ -749,7 +749,9 @@ inlineToHtml opts inline =
749749 else [A.title $ toValue tit])
750750 return $ foldl (!) H5.embed attributes
751751 -- note: null title included, as in Markdown.pl
752− (Note contents) -> do
752+ (Note contents)
753+ | writerIgnoreNotes opts -> return mempty
754+ | otherwise -> do
753755 st <- get
754756 let notes = stNotes st
755757 let number = (length notes) + 1