Safe Haskell | None |
---|---|
Language | Haskell2010 |
- commonmarkToHtml :: [CMarkOption] -> Text -> Text
- commonmarkToXml :: [CMarkOption] -> Text -> Text
- commonmarkToMan :: [CMarkOption] -> Text -> Text
- commonmarkToNode :: [CMarkOption] -> Text -> Node
- nodeToCommonmark :: [CMarkOption] -> Int -> Node -> Text
- optSourcePos :: CMarkOption
- optNormalize :: CMarkOption
- optHardBreaks :: CMarkOption
- optSmart :: 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] -> Text -> Text Source
Convert CommonMark formatted text to groff man, 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.
nodeToCommonmark :: [CMarkOption] -> Int -> Node -> Text Source
data ListAttributes Source
data CMarkOption Source