mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-28 18:35:49 +00:00
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:
co-authored by
Claude
parent
68bbe9dcae
commit
fa0ec573e1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user