Markdown writer: Use span with style for SmallCaps. (#1360)
This commit is contained in:
parent
9d10df7ff4
commit
92bcd8d298
1 changed files with 8 additions and 1 deletions
|
@ -696,7 +696,14 @@ inlineToMarkdown opts (Subscript lst) = do
|
|||
return $ if isEnabled Ext_subscript opts
|
||||
then "~" <> contents <> "~"
|
||||
else "<sub>" <> contents <> "</sub>"
|
||||
inlineToMarkdown opts (SmallCaps lst) = inlineListToMarkdown opts lst
|
||||
inlineToMarkdown opts (SmallCaps lst) = do
|
||||
contents <- inlineListToMarkdown opts lst
|
||||
st <- get
|
||||
return $ if stPlain st
|
||||
then contents
|
||||
else tagWithAttrs "span"
|
||||
("",[],[("style","font-variant:small-caps;")])
|
||||
<> contents <> text "</span>"
|
||||
inlineToMarkdown opts (Quoted SingleQuote lst) = do
|
||||
contents <- inlineListToMarkdown opts lst
|
||||
return $ "‘" <> contents <> "’"
|
||||
|
|
Loading…
Add table
Reference in a new issue