mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-25 09:47:06 +00:00
Use 'literal tag' instead of 'text (T.unpack tag)' in tagWithAttrs
This commit is contained in:
committed by
John MacFarlane
parent
e9d2ceb9bd
commit
323be80838
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user