cmark-0.1.0.0: Haskell bindings to libcmark, CommonMark parser and renderer

Safe HaskellNone
LanguageHaskell2010

CMark

Synopsis

Documentation

type Url = Text Source

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.