cmark-0.3.2: Fast, accurate CommonMark (Markdown) parser and renderer

Safe HaskellNone
LanguageHaskell2010

CMark

Synopsis

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.

type Url = Text Source