commonmark-extensions-0.2.4: Pure Haskell commonmark parser.

Safe Haskell | Safe-Inferred
Language | Haskell2010

Commonmark.Extensions.Attributes

Synopsis

- attributesSpec :: (Monad m, IsInline il) => SyntaxSpec m il bl
- class HasDiv bl where
  - div_ :: bl -> bl
- fencedDivSpec :: (Monad m, IsInline il, IsBlock il bl, HasDiv bl) => SyntaxSpec m il bl
- class IsInline a => HasSpan a where
  - spanWith :: Attributes -> a -> a
- bracketedSpanSpec :: (Monad m, IsInline il, HasSpan il) => SyntaxSpec m il bl
- rawAttributeSpec :: (Monad m, IsBlock il bl) => SyntaxSpec m il bl
- pAttributes :: forall u m. Monad m => ParsecT [Tok] u m Attributes

# Documentation

attributesSpec :: (Monad m, IsInline il) => SyntaxSpec m il bl #

Allow attributes on everything.

class HasDiv bl where #

Methods

div_ :: bl -> bl #

#### Instances

Instances details

HasDiv (Html a) # |
Instance details Defined in Commonmark.Extensions.Attributes Methods div_ :: Html a -> Html a #
(HasDiv bl, Semigroup bl) => HasDiv (WithSourceMap bl) # |
Instance details Defined in Commonmark.Extensions.Attributes Methods div_ :: WithSourceMap bl -> WithSourceMap bl #

fencedDivSpec :: (Monad m, IsInline il, IsBlock il bl, HasDiv bl) => SyntaxSpec m il bl #

class IsInline a => HasSpan a where #

Methods

spanWith :: Attributes -> a -> a #

#### Instances

Instances details

Rangeable (Html a) => HasSpan (Html a) # |
Instance details Defined in Commonmark.Extensions.Attributes Methods spanWith :: Attributes -> Html a -> Html a #
(HasSpan i, Semigroup i, Monoid i) => HasSpan (WithSourceMap i) # |
Instance details Defined in Commonmark.Extensions.Attributes Methods spanWith :: Attributes -> WithSourceMap i -> WithSourceMap i #

bracketedSpanSpec :: (Monad m, IsInline il, HasSpan il) => SyntaxSpec m il bl #

rawAttributeSpec :: (Monad m, IsBlock il bl) => SyntaxSpec m il bl #

pAttributes :: forall u m. Monad m => ParsecT [Tok] u m Attributes #