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

Commonmark.Inlines

Synopsis

Documentation

mkInlineParser :: (Monad m, IsInline a) => [BracketedSpec a] -> [FormattingSpec a] -> [InlineParser m a] -> [InlineParser m Attributes] -> ReferenceMap -> [Tok] -> m (Either ParseError a) #

data IPState m #

type InlineParser m = ParsecT [Tok] (IPState m) (StateT Enders m) #

Specifies delimiters for formatting, e.g. strong emphasis.

data FormattingSpec il #

Constructors

FormattingSpec 

Fields

Instances

Instances details
Show (FormattingSpec il) # 
Instance details

Defined in Commonmark.Inlines

Methods

showsPrec :: Int -> FormattingSpec il -> ShowS

show :: FormattingSpec il -> String

showList :: [FormattingSpec il] -> ShowS

data BracketedSpec il #

Constructors

BracketedSpec 

Fields

Instances

Instances details
Show (BracketedSpec il) # 
Instance details

Defined in Commonmark.Inlines

Methods

showsPrec :: Int -> BracketedSpec il -> ShowS

show :: BracketedSpec il -> String

showList :: [BracketedSpec il] -> ShowS

data LinkInfo #

Constructors

LinkInfo 

Fields

Instances

Instances details
Show LinkInfo # 
Instance details

Defined in Commonmark.ReferenceMap

Methods

showsPrec :: Int -> LinkInfo -> ShowS

show :: LinkInfo -> String

showList :: [LinkInfo] -> ShowS

pLink :: ReferenceMap -> Text -> Parsec [Tok] s LinkInfo #

pLinkLabel :: Monad m => ParsecT [Tok] s m Text #

pLinkDestination :: Monad m => ParsecT [Tok] s m [Tok] #

pLinkTitle :: Monad m => ParsecT [Tok] s m [Tok] #

pEscaped :: Monad m => ParsecT [Tok] s m Tok #

pEscapedSymbol :: Monad m => ParsecT [Tok] s m Tok #

processEmphasis :: IsInline a => [Chunk a] -> [Chunk a] #

processBrackets :: IsInline a => [BracketedSpec a] -> ReferenceMap -> [Chunk a] -> [Chunk a] #

pBacktickSpan :: Monad m => Tok -> InlineParser m (Either [Tok] [Tok]) #

normalizeCodeSpan :: Text -> Text #

withAttributes :: (IsInline a, Monad m) => InlineParser m a -> InlineParser m a #