From fa0ec573e1bf83192771925e0f5ffcb5d5606739 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 20 Sep 2026 05:30:10 +0000 Subject: [PATCH] HTML writer: make KaTeX CSS URL handling consistent with the JS URL. The stylesheet link applied toURI to the base URL before appending katex.min.css, while the script URL appended before converting. Co-Authored-By: Claude --- src/Text/Pandoc/Writers/HTML.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs index 9fec8ba61..41debb62a 100644 --- a/src/Text/Pandoc/Writers/HTML.hs +++ b/src/Text/Pandoc/Writers/HTML.hs @@ -360,7 +360,7 @@ pandocToHtml opts (Pandoc meta blocks) = do ] nl H.link ! A.rel "stylesheet" ! - A.href (toValue $ toURI html5 url <> "katex.min.css") + A.href (toValue $ toURI html5 $ url <> "katex.min.css") _ -> mempty let mCss :: Maybe [Text] = lookupContext "css" metadata