Muse writer: output smallcaps as emphasis
This commit is contained in:
parent
f8608b418a
commit
ff8e59a174
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue