| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
CMark
- data Node = Node (Maybe PosInfo) NodeType [Node]
- data NodeType
- data PosInfo = PosInfo {}
- data DelimType
- data ListType
- data Tightness
- type Url = Text
- type Title = Text
- type Level = Int
- type Info = Text
- data CMarkOption
- markdownToHtml :: [CMarkOption] -> Text -> Text
- parseDocument :: [CMarkOption] -> Text -> Node
- optSourcePos :: CMarkOption
- optNormalize :: CMarkOption
- optHardBreaks :: CMarkOption
- optSmart :: CMarkOption
Documentation
Constructors
| PERIOD_DELIM | |
| PAREN_DELIM |
Constructors
| BULLET_LIST | |
| ORDERED_LIST |
data CMarkOption Source
A type for PCRE compile-time options. These are newtyped CInts, which can be bitwise-or'd together, using '(Data.Bits..|.)'
markdownToHtml :: [CMarkOption] -> Text -> Text Source
Convert CommonMark formatted text to Html, using cmark's built-in renderer.
parseDocument :: [CMarkOption] -> Text -> Node Source
Convert CommonMark formatted text to a structured Node tree,
which can be transformed or rendered using Haskell code.