| 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
- = DOCUMENT
- | THEMATIC_BREAK
- | PARAGRAPH
- | BLOCK_QUOTE
- | HTML_BLOCK Text
- | CUSTOM_BLOCK OnEnter OnExit
- | CODE_BLOCK Info Text
- | HEADING Level
- | LIST ListAttributes
- | ITEM
- | TEXT Text
- | SOFTBREAK
- | LINEBREAK
- | HTML_INLINE Text
- | CUSTOM_INLINE OnEnter OnExit
- | CODE Text
- | EMPH
- | STRONG
- | LINK Url Title
- | IMAGE Url Title
- 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
| DOCUMENT | |
| THEMATIC_BREAK | |
| PARAGRAPH | |
| BLOCK_QUOTE | |
| HTML_BLOCK Text | |
| CUSTOM_BLOCK OnEnter OnExit | |
| CODE_BLOCK Info Text | |
| HEADING Level | |
| LIST ListAttributes | |
| ITEM | |
| TEXT Text | |
| SOFTBREAK | |
| LINEBREAK | |
| HTML_INLINE Text | |
| CUSTOM_INLINE OnEnter OnExit | |
| CODE Text | |
| EMPH | |
| STRONG | |
| LINK Url Title | |
| IMAGE Url Title |
Constructors
| PERIOD_DELIM | |
| PAREN_DELIM |
Constructors
| BULLET_LIST | |
| ORDERED_LIST |
data ListAttributes Source
Constructors
| ListAttributes | |
data CMarkOption Source