| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
CMark
- commonmarkToHtml :: [CMarkOption] -> Text -> Text
- commonmarkToXml :: [CMarkOption] -> Text -> Text
- commonmarkToMan :: [CMarkOption] -> Maybe Int -> Text -> Text
- commonmarkToLaTeX :: [CMarkOption] -> Maybe Int -> Text -> Text
- commonmarkToNode :: [CMarkOption] -> Text -> Node
- nodeToHtml :: [CMarkOption] -> Node -> Text
- nodeToXml :: [CMarkOption] -> Node -> Text
- nodeToMan :: [CMarkOption] -> Maybe Int -> Node -> Text
- nodeToLaTeX :: [CMarkOption] -> Maybe Int -> Node -> Text
- nodeToCommonmark :: [CMarkOption] -> Maybe Int -> Node -> Text
- optSourcePos :: CMarkOption
- optNormalize :: CMarkOption
- optHardBreaks :: CMarkOption
- optSmart :: CMarkOption
- optSafe :: CMarkOption
- data Node = Node (Maybe PosInfo) NodeType [Node]
- data NodeType
- data PosInfo = PosInfo {}
- data DelimType
- data ListType
- data ListAttributes = ListAttributes {}
- type Url = Text
- type Title = Text
- type Level = Int
- type Info = Text
- data CMarkOption
Documentation
commonmarkToHtml :: [CMarkOption] -> Text -> Text Source
Convert CommonMark formatted text to Html, using cmark's built-in renderer.
commonmarkToXml :: [CMarkOption] -> Text -> Text Source
Convert CommonMark formatted text to CommonMark XML, using cmark's built-in renderer.
commonmarkToMan :: [CMarkOption] -> Maybe Int -> Text -> Text Source
Convert CommonMark formatted text to groff man, using cmark's built-in renderer.
commonmarkToLaTeX :: [CMarkOption] -> Maybe Int -> Text -> Text Source
Convert CommonMark formatted text to latex, using cmark's built-in renderer.
commonmarkToNode :: [CMarkOption] -> Text -> Node Source
Convert CommonMark formatted text to a structured Node tree,
which can be transformed or rendered using Haskell code.
nodeToHtml :: [CMarkOption] -> Node -> Text Source
nodeToXml :: [CMarkOption] -> Node -> Text Source
nodeToLaTeX :: [CMarkOption] -> Maybe Int -> Node -> Text Source
nodeToCommonmark :: [CMarkOption] -> Maybe Int -> Node -> Text Source
optSourcePos :: CMarkOption Source
Include a data-sourcepos attribute on block elements.
optNormalize :: CMarkOption Source
Normalize the document by consolidating adjacent text nodes.
optHardBreaks :: CMarkOption Source
Render softbreak elements as hard line breaks.
optSmart :: CMarkOption Source
Convert straight quotes to curly, --- to em-dash, -- to en-dash.
Suppress rendering of raw HTML and potentially dangerous URLs in links and images.
Constructors
| PERIOD_DELIM | |
| PAREN_DELIM |
Constructors
| BULLET_LIST | |
| ORDERED_LIST |
data ListAttributes Source
Constructors
| ListAttributes | |
data CMarkOption Source