commonmark-0.1.0.1: Pure Haskell commonmark parser.

Safe HaskellSafe
LanguageHaskell2010

Commonmark.ReferenceMap

Synopsis

Documentation

newtype ReferenceMap Source #

Lookup table for link references.

Constructors

ReferenceMap 

data LinkInfo Source #

Instances
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.