From 8f20d7d92091c87e516fe785a323e845578d63f8 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 4 Mar 2017 14:41:45 +0100 Subject: Markdown writer: Use span with class 'smallcaps' for SmallCaps. Instead of a style attribute as before. See #1592. --- src/Text/Pandoc/Writers/Markdown.hs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/Text/Pandoc/Writers') diff --git a/src/Text/Pandoc/Writers/Markdown.hs b/src/Text/Pandoc/Writers/Markdown.hs index e5b3b5001..d34ccb0f6 100644 --- a/src/Text/Pandoc/Writers/Markdown.hs +++ b/src/Text/Pandoc/Writers/Markdown.hs @@ -973,8 +973,7 @@ inlineToMarkdown opts (SmallCaps lst) = do (isEnabled Ext_raw_html opts || isEnabled Ext_native_spans opts) then do contents <- inlineListToMarkdown opts lst - return $ tagWithAttrs "span" - ("",[],[("style","font-variant:small-caps;")]) + return $ tagWithAttrs "span" ("",["smallcaps"],[]) <> contents <> text "" else inlineListToMarkdown opts $ capitalize lst inlineToMarkdown opts (Quoted SingleQuote lst) = do -- cgit v1.2.3