citeproc-hs-0.3.9: A Citation Style Language implementation in Haskell

Portability | unportable
Stability | unstable
Maintainer | Andrea Rossato <andrea.rossato@unitn.it>
Safe Haskell | None

Text.CSL.Output.Pandoc

Description

The pandoc output formatter for CSL

Synopsis

- renderPandoc :: Style -> [FormattedOutput] -> [Inline]
- renderPandoc' :: Style -> [FormattedOutput] -> Block
- renderPandoc_ :: Style -> [FormattedOutput] -> [Inline]
- headInline :: [Inline] -> String
- initInline :: [Inline] -> [Inline]
- tailFirstInlineStr :: [Inline] -> [Inline]
- toCapital :: [Inline] -> [Inline]
- startWithPunct :: [Inline] -> Bool
- endWithPunct :: [Inline] -> Bool

# Documentation

renderPandoc :: Style -> [FormattedOutput] -> [Inline]Source

With a `Style` and the formatted output generate a `String` in the native `Pandoc` formats (i.e. immediately readable by pandoc).

renderPandoc' :: Style -> [FormattedOutput] -> Block Source

Same as `renderPandoc`, but the output is wrapped in a pandoc paragraph block.

renderPandoc_ :: Style -> [FormattedOutput] -> [Inline]Source

For the testsuite: we use `Link` and `Strikeout` to store nocase and nodecor rich text formatting classes.

headInline :: [Inline] -> String Source

initInline :: [Inline] -> [Inline]Source

tailFirstInlineStr :: [Inline] -> [Inline]Source

toCapital :: [Inline] -> [Inline]Source

startWithPunct :: [Inline] -> Bool Source

endWithPunct :: [Inline] -> Bool Source