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 <noreply@anthropic.com>
This commit is contained in:
John MacFarlane
2026-09-20 10:28:30 -07:00
co-authored by Claude
parent 68bbe9dcae
commit fa0ec573e1
+1 -1
View File
@@ -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