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.
commitaa5ae5ff0f19a3ad1739fe4afa0b26f05a5966b4
authorJohn MacFarlane <jgm@berkeley.edu>
dateSat 4 Mar 2017, 14:46 (10 years ago)
parentb64211a
src/Text/Pandoc/Writers/HTML.hs+1−1
@@ -880,7 +880,7 @@ inlineToHtml opts inline = do
880880 (Strikeout lst) -> inlineListToHtml opts lst >>=
881881 return . H.del
882882 (SmallCaps lst) -> inlineListToHtml opts lst >>=
883− return . (H.span ! A.style "font-variant: small-caps;")
883+ return . (H.span ! A.class_ "smallcaps")
884884 (Superscript lst) -> inlineListToHtml opts lst >>= return . H.sup
885885 (Subscript lst) -> inlineListToHtml opts lst >>= return . H.sub
886886 (Quoted quoteType lst) ->