cmark-0.5.2.1: 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] -> 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.

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.

optSafe :: CMarkOption Source

Suppress rendering of raw HTML and potentially dangerous URLs in links and images.

type Url = Text Source