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:
parent
b64211a547
commit
aa5ae5ff0f
1 changed files with 1 additions and 1 deletions
|
@ -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) ->
|
||||
|
|
Loading…
Reference in a new issue