aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2023-11-25 00:03:53 -0500
committerJohn MacFarlane <[email protected]>2023-11-25 00:03:53 -0500
commit6c4f938192fecef999a22a93a8d3bca02583aff9 (patch)
tree59bf7fcff38d78d2e7d67ed7c760d79c0185c554 /src
parenta2a0f73eb816917839eeffad9e487394ebd88443 (diff)
Shared.renderTags': allow svg path element to be minimized.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Shared.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Shared.hs b/src/Text/Pandoc/Shared.hs
index 95828da9a..75cc442c5 100644
--- a/src/Text/Pandoc/Shared.hs
+++ b/src/Text/Pandoc/Shared.hs
@@ -777,7 +777,8 @@ formatCode attr = B.fromList . walk fmt . B.toList
renderTags' :: [Tag T.Text] -> T.Text
renderTags' = renderTagsOptions
renderOptions{ optMinimize = matchTags ["hr", "br", "img",
- "meta", "link", "col", "use"]
+ "meta", "link", "col",
+ "use", "path"]
, optRawTag = matchTags ["script", "style"] }
where matchTags tags = flip elem tags . T.toLower