HTML writer: ensure mathjax link is added when math appears in footnote.

Previously if a document only had math in a footnote,
the MathJax link would not be added.

Closes #2881.
This commit is contained in:
John MacFarlane 2016-04-29 14:54:54 -07:00
parent 32f1b0a5f1
commit aa4a1d527a

View file

@ -855,13 +855,12 @@ inlineToHtml opts inline =
(Note contents)
| writerIgnoreNotes opts -> return mempty
| otherwise -> do
st <- get
let notes = stNotes st
notes <- gets stNotes
let number = (length notes) + 1
let ref = show number
htmlContents <- blockListToNote opts ref contents
-- push contents onto front of notes
put $ st {stNotes = (htmlContents:notes)}
modify $ \st -> st {stNotes = (htmlContents:notes)}
let revealSlash = ['/' | writerSlideVariant opts
== RevealJsSlides]
let link = H.a ! A.href (toValue $ "#" ++