HTML writer: Omit footnotes from TOC entries.

Otherwise we get doubled footnotes when headers have notes!
This commit is contained in:
John MacFarlane
2014-01-06 10:17:31 -08:00
parent 3dd1b1f73a
commit 2dd6d892fa
+3 -1
View File
@@ -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