comark-parser-0.1.0: Parser for Commonmark (markdown)

Safe HaskellSafe
LanguageHaskell2010

Comark.Parser.Options

Documentation

data ParserOption Source #

Constructors

Normalize

Consolidate adjacent text nodes.

LinkReferences (Text -> Maybe (Text, Maybe Text))

Predefine link reference defenitions.

References are represented with a mapping from a link text to a pair of a link destination and an optional link title.

During parsing the link references defined in a document would be collected into additional mapping. When link references are being mapping defined in options takes precedence over mapping found in the document.

TODO: Examples