Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- data SyntaxSpec m il bl = SyntaxSpec {
- syntaxBlockSpecs :: [BlockSpec m il bl]
- syntaxBracketedSpecs :: [BracketedSpec il]
- syntaxFormattingSpecs :: [FormattingSpec il]
- syntaxInlineParsers :: [InlineParser m il]
- syntaxFinalParsers :: [BlockParser m il bl bl]
- syntaxAttributeParsers :: forall u m1. Monad m1 => [ParsecT [Tok] u m1 Attributes]
- defaultSyntaxSpec :: (Monad m, IsBlock il bl, IsInline il) => SyntaxSpec m il bl
Documentation
data SyntaxSpec m il bl Source #
A SyntaxSpec
defines a basic collection of syntax
elements or an extension. SyntaxSpec
s can be composed
using monoidal mappend
.
SyntaxSpec | |
|
Instances
Semigroup (SyntaxSpec m il bl) Source # | |
Defined in Commonmark.Syntax (<>) :: SyntaxSpec m il bl -> SyntaxSpec m il bl -> SyntaxSpec m il bl # sconcat :: NonEmpty (SyntaxSpec m il bl) -> SyntaxSpec m il bl # stimes :: Integral b => b -> SyntaxSpec m il bl -> SyntaxSpec m il bl # | |
Monoid (SyntaxSpec m il bl) Source # | |
Defined in Commonmark.Syntax mempty :: SyntaxSpec m il bl # mappend :: SyntaxSpec m il bl -> SyntaxSpec m il bl -> SyntaxSpec m il bl # mconcat :: [SyntaxSpec m il bl] -> SyntaxSpec m il bl # |
defaultSyntaxSpec :: (Monad m, IsBlock il bl, IsInline il) => SyntaxSpec m il bl Source #
Standard commonmark syntax.