commonmark-0.2.5.1: Pure Haskell commonmark parser.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Commonmark.ReferenceMap

Synopsis

Documentation

newtype ReferenceMap Source #

Lookup table for link references.

Constructors

ReferenceMap 

Instances

Instances details
Show ReferenceMap Source # 
Instance details

Defined in Commonmark.ReferenceMap

data LinkInfo Source #

Constructors

LinkInfo 

Fields

Instances

Instances details
Show LinkInfo Source # 
Instance details

Defined in Commonmark.ReferenceMap

insertReference Source #

Arguments

:: Typeable a 
=> Text

Reference label

-> a 
-> ReferenceMap 
-> ReferenceMap 

Insert a link reference into a reference map.

lookupReference Source #

Arguments

:: Typeable a 
=> Text

Reference label

-> ReferenceMap 
-> Maybe a 

Lookup a reference in a reference map. If there are several values at this key, we return the first one in the list that can be converted to an a.