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.
This commit is contained in:
John MacFarlane 2017-03-04 14:46:54 +01:00
parent b64211a547
commit aa5ae5ff0f

View file

@ -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) ->