commonmark-0.2.1: Pure Haskell commonmark parser.
Safe HaskellNone
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) Source #

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

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

data FormattingSpec il Source #

Constructors

FormattingSpec 

Fields

Instances

Instances details
Show (FormattingSpec il) Source # 
Instance details

Defined in Commonmark.Inlines

Methods

showsPrec :: Int -> FormattingSpec il -> ShowS

show :: FormattingSpec il -> String

showList :: [FormattingSpec il] -> ShowS

data BracketedSpec il Source #

Constructors

BracketedSpec 

Fields

Instances

Instances details
Show (BracketedSpec il) Source # 
Instance details

Defined in Commonmark.Inlines

Methods

showsPrec :: Int -> BracketedSpec il -> ShowS

show :: BracketedSpec il -> String

showList :: [BracketedSpec il] -> ShowS

data LinkInfo Source #

Constructors

LinkInfo 

Fields

Instances

Instances details
Show LinkInfo Source # 
Instance details

Defined in Commonmark.ReferenceMap

Methods

showsPrec :: Int -> LinkInfo -> ShowS

show :: LinkInfo -> String

showList :: [LinkInfo] -> ShowS

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

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

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

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

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

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

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

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

normalizeCodeSpan :: Text -> Text Source #