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:
parent
32f1b0a5f1
commit
aa4a1d527a
1 changed files with 2 additions and 3 deletions
|
@ -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 $ "#" ++
|
||||
|
|
Loading…
Add table
Reference in a new issue