mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-24 15:44:59 +08:00
Muse writer: output smallcaps as emphasis
This commit is contained in:
@@ -369,7 +369,7 @@ inlineToMuse (Superscript lst) = do
|
||||
inlineToMuse (Subscript lst) = do
|
||||
contents <- inlineListToMuse lst
|
||||
return $ "<sub>" <> contents <> "</sub>"
|
||||
inlineToMuse (SmallCaps lst) = inlineListToMuse lst
|
||||
inlineToMuse (SmallCaps lst) = inlineToMuse (Emph lst)
|
||||
inlineToMuse (Quoted SingleQuote lst) = do
|
||||
contents <- inlineListToMuse lst
|
||||
return $ "‘" <> contents <> "’"
|
||||
|
||||
@@ -327,7 +327,7 @@ tests = [ testGroup "block elements"
|
||||
]
|
||||
, "superscript" =: superscript (text "foo") =?> "<sup>foo</sup>"
|
||||
, "subscript" =: subscript (text "foo") =?> "<sub>foo</sub>"
|
||||
, "smallcaps" =: smallcaps (text "foo") =?> "foo"
|
||||
, "smallcaps" =: smallcaps (text "foo") =?> "<em>foo</em>"
|
||||
, "single quoted" =: singleQuoted (text "foo") =?> "‘foo’"
|
||||
, "double quoted" =: doubleQuoted (text "foo") =?> "“foo”"
|
||||
-- Cite is trivial
|
||||
|
||||
Reference in New Issue
Block a user