mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-25 09:47:06 +00:00
HTML writer: Omit footnotes from TOC entries.
Otherwise we get doubled footnotes when headers have notes!
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user