diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2024-02-09 11:44:16 -0800 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2024-02-09 16:39:40 -0800 |
| commit | ea23868ae46aa7677c9e0d74d892cd8dea628b1f (patch) | |
| tree | 765e5b058d8f161e443d97364d083d508da94c1e /src | |
| parent | 9ccd40f1142e08dd06629b156685ff5d42bf9e2d (diff) | |
Fix size of duplicated SVGs with `--embed-resources`.
Closes #9439.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Text/Pandoc/SelfContained.hs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Text/Pandoc/SelfContained.hs b/src/Text/Pandoc/SelfContained.hs index 7a39edc22..54d49127a 100644 --- a/src/Text/Pandoc/SelfContained.hs +++ b/src/Text/Pandoc/SelfContained.hs @@ -160,9 +160,7 @@ convertTags (t@(TagOpen tagname as):ts) case M.lookup hash svgmap of Just (svgid, svgattrs) -> do let attrs' = [(k,v) | (k,v) <- combineSvgAttrs svgattrs attrs - , k /= "id" - , k /= "width" - , k /= "height"] + , k /= "id"] return $ TagOpen "svg" attrs' : TagOpen "use" [("href", "#" <> svgid), ("width", "100%"), |
