ICML writer: Add Cite style to citations.
(mb21)
This commit is contained in:
parent
12df4054ad
commit
4391c5f34c
1 changed files with 3 additions and 1 deletions
|
@ -91,6 +91,7 @@ lowerAlphaName :: String
|
|||
upperAlphaName :: String
|
||||
subListParName :: String
|
||||
footnoteName :: String
|
||||
citeName :: String
|
||||
paragraphName = "Paragraph"
|
||||
codeBlockName = "CodeBlock"
|
||||
blockQuoteName = "Blockquote"
|
||||
|
@ -113,6 +114,7 @@ lowerAlphaName = "lowerAlpha"
|
|||
upperAlphaName = "upperAlpha"
|
||||
subListParName = "subParagraph"
|
||||
footnoteName = "Footnote"
|
||||
citeName = "Cite"
|
||||
|
||||
|
||||
-- | Convert Pandoc document to string in ICML format.
|
||||
|
@ -407,7 +409,7 @@ inlineToICML opts style (Subscript lst) = inlinesToICML opts (subscriptName:styl
|
|||
inlineToICML opts style (SmallCaps lst) = inlinesToICML opts (smallCapsName:style) lst
|
||||
inlineToICML opts style (Quoted SingleQuote lst) = inlinesToICML opts style $ [Str "‘"] ++ lst ++ [Str "’"]
|
||||
inlineToICML opts style (Quoted DoubleQuote lst) = inlinesToICML opts style $ [Str "“"] ++ lst ++ [Str "”"]
|
||||
inlineToICML opts style (Cite _ lst) = inlinesToICML opts style lst
|
||||
inlineToICML opts style (Cite _ lst) = inlinesToICML opts (citeName:style) lst
|
||||
inlineToICML _ style (Code _ str) = charStyle (codeName:style) $ text $ escapeStringForXML str
|
||||
inlineToICML _ style Space = charStyle style space
|
||||
inlineToICML _ style LineBreak = charStyle style $ text lineSeparator
|
||||
|
|
Loading…
Add table
Reference in a new issue