diff options
| author | John MacFarlane <[email protected]> | 2025-11-16 14:17:11 +0100 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2025-11-16 14:17:59 +0100 |
| commit | 28338112ee0c2b736314368a9d02f33aca64be55 (patch) | |
| tree | eeb64d3f3d342e94d025d75d24b9d38f9fab7897 /src | |
| parent | 7b29962d869224e19e677cf5acc3aa3eaec1d352 (diff) | |
HTML writer: use 'defer' when including mathjax script.
As recommended in the MathJax docs.
Closes #11292.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Text/Pandoc/Writers/HTML.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs index 12444f75f..95aa1ac24 100644 --- a/src/Text/Pandoc/Writers/HTML.hs +++ b/src/Text/Pandoc/Writers/HTML.hs @@ -317,7 +317,8 @@ pandocToHtml opts (Pandoc meta blocks) = do MathJax url | slideVariant /= RevealJsSlides -> -- mathjax is handled via a special plugin in revealjs - H.script ! A.src (toValue $ toURI html5 url) + H.script ! A.defer mempty + ! A.src (toValue $ toURI html5 url) ! A.type_ "text/javascript" $ case slideVariant of SlideousSlides -> |
