Safe Haskell | None |
---|---|
Language | Haskell2010 |
CSL JSON is the structured text format defined in
https://citeproc-js.readthedocs.io/en/latest/csl-json/markup.html.
It is used to represent formatted text inside CSL JSON bibliographies.
For the most part it is a subset of HTML, with some special
features like smart quote parsing. This module defines a parser
and a renderer for this format, as well as CiteprocOutput
and
other typeclass instances.
Synopsis
- data CslJson a
- = CslText a
- | CslEmpty
- | CslConcat (CslJson a) (CslJson a)
- | CslQuoted (CslJson a)
- | CslItalic (CslJson a)
- | CslNormal (CslJson a)
- | CslBold (CslJson a)
- | CslUnderline (CslJson a)
- | CslNoDecoration (CslJson a)
- | CslSmallCaps (CslJson a)
- | CslBaseline (CslJson a)
- | CslSup (CslJson a)
- | CslSub (CslJson a)
- | CslNoCase (CslJson a)
- | CslDiv Text (CslJson a)
- | CslLink Text (CslJson a)
- cslJsonToJson :: CslJson Text -> [Value]
- renderCslJson :: Bool -> Locale -> CslJson Text -> Text
- parseCslJson :: Locale -> Text -> CslJson Text
Documentation
CslText a | |
CslEmpty | |
CslConcat (CslJson a) (CslJson a) | |
CslQuoted (CslJson a) | |
CslItalic (CslJson a) | |
CslNormal (CslJson a) | |
CslBold (CslJson a) | |
CslUnderline (CslJson a) | |
CslNoDecoration (CslJson a) | |
CslSmallCaps (CslJson a) | |
CslBaseline (CslJson a) | |
CslSup (CslJson a) | |
CslSub (CslJson a) | |
CslNoCase (CslJson a) | |
CslDiv Text (CslJson a) | |
CslLink Text (CslJson a) |