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

Copyright | (c) Andrea Rossato
License | BSD-style (see LICENSE)
Maintainer | Andrea Rossato <andrea.rossato@unitn.it>
Stability | unstable
Portability | unportable
Safe Haskell | None
Language | Haskell98

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]

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

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

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

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

headInline :: [Inline] -> String

initInline :: [Inline] -> [Inline]

tailFirstInlineStr :: [Inline] -> [Inline]

toCapital :: [Inline] -> [Inline]

startWithPunct :: [Inline] -> Bool

endWithPunct :: [Inline] -> Bool