aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-03-04 14:46:54 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2017-03-04 14:46:54 +0100
commitaa5ae5ff0f19a3ad1739fe4afa0b26f05a5966b4 (patch)
tree0a971774da0906ca37e6640b713e98ef9c55b85b /src/Text
parentb64211a547abf8e454b01e0b79cd18d689f1f3bc (diff)
downloadpandoc-aa5ae5ff0f19a3ad1739fe4afa0b26f05a5966b4.tar.gz
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.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Writers/HTML.hs2
1 files changed, 1 insertions, 1 deletions
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) ->