From 323be80838bafaa2bb3fabc8b83106ae876e9538 Mon Sep 17 00:00:00 2001 From: Wout Gevaert Date: Thu, 10 Nov 2022 22:53:20 +0100 Subject: Use 'literal tag' instead of 'text (T.unpack tag)' in tagWithAttrs --- src/Text/Pandoc/Writers/Shared.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Text/Pandoc/Writers/Shared.hs b/src/Text/Pandoc/Writers/Shared.hs index 1af0f7e9f..65dcec786 100644 --- a/src/Text/Pandoc/Writers/Shared.hs +++ b/src/Text/Pandoc/Writers/Shared.hs @@ -172,8 +172,8 @@ getLang opts meta = _ -> Nothing -- | Produce an HTML tag with the given pandoc attributes. -tagWithAttrs :: HasChars a => Text -> Attr -> Doc a -tagWithAttrs tag attr = "<" <> text (T.unpack tag) <> (htmlAttrs attr) <> ">" +tagWithAttrs :: HasChars a => a -> Attr -> Doc a +tagWithAttrs tag attr = "<" <> literal tag <> (htmlAttrs attr) <> ">" -- | Produce HTML for the given pandoc attributes, to be used in HTML tags htmlAttrs :: HasChars a => Attr -> Doc a -- cgit v1.2.3