From aa5ae5ff0f19a3ad1739fe4afa0b26f05a5966b4 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 4 Mar 2017 14:46:54 +0100 Subject: HTML writer: Render SmallCaps as span with smallcaps class. Rather than using a style attribute directly. This gives the user more flexibility in styling small caps in CSS. See #1592. --- src/Text/Pandoc/Writers/HTML.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs index 6a5c4e43a..1796b6481 100644 --- a/src/Text/Pandoc/Writers/HTML.hs +++ b/src/Text/Pandoc/Writers/HTML.hs @@ -880,7 +880,7 @@ inlineToHtml opts inline = do (Strikeout lst) -> inlineListToHtml opts lst >>= return . H.del (SmallCaps lst) -> inlineListToHtml opts lst >>= - return . (H.span ! A.style "font-variant: small-caps;") + return . (H.span ! A.class_ "smallcaps") (Superscript lst) -> inlineListToHtml opts lst >>= return . H.sup (Subscript lst) -> inlineListToHtml opts lst >>= return . H.sub (Quoted quoteType lst) -> -- cgit v1.2.3