commonmark-0.2.3: Pure Haskell commonmark parser.

Safe Haskell | Safe-Inferred
Language | Haskell2010

Commonmark.Html

# Documentation

data Html a Source #

#### Instances

Instances details

Monoid (Html a) Source # |
Instance details Defined in Commonmark.Html Methods mempty :: Html a Source # mappend :: Html a -> Html a -> Html a Source # mconcat :: [Html a] -> Html a Source #
Semigroup (Html a) Source # |
Instance details Defined in Commonmark.Html Methods (<>) :: Html a -> Html a -> Html a Source # sconcat :: NonEmpty (Html a) -> Html a Source # stimes :: Integral b => b -> Html a -> Html a Source #
Show (Html a) Source # |
Instance details Defined in Commonmark.Html Methods showsPrec :: Int -> Html a -> ShowS Source # show :: Html a -> String Source # showList :: [Html a] -> ShowS Source #
HasAttributes (Html a) Source # |
Instance details Defined in Commonmark.Html Methods addAttributes :: Attributes -> Html a -> Html a Source #
Rangeable (Html a) => IsInline (Html a) Source # |

Instance details

Defined in Commonmark.Html

Methods

lineBreak :: Html a Source #

softBreak :: Html a Source #

str :: Text -> Html a Source #

entity :: Text -> Html a Source #

escapedChar :: Char -> Html a Source #

emph :: Html a -> Html a Source #

strong :: Html a -> Html a Source #

link :: Text -> Text -> Html a -> Html a Source #

image :: Text -> Text -> Html a -> Html a Source #

code :: Text -> Html a Source #

rawInline :: Format -> Text -> Html a Source #

Rangeable (Html SourceRange) Source # |
Instance details Defined in Commonmark.Html Methods ranged :: SourceRange -> Html SourceRange -> Html SourceRange Source #
Rangeable (Html ()) Source # |
Instance details Defined in Commonmark.Html Methods ranged :: SourceRange -> Html () -> Html () Source #
ToPlainText (Html a) Source # |
Instance details Defined in Commonmark.Html Methods toPlainText :: Html a -> Text Source #
IsInline (Html a) => IsBlock (Html a) (Html a) Source # |

Instance details

Defined in Commonmark.Html

Methods

paragraph :: Html a -> Html a Source #

plain :: Html a -> Html a Source #

thematicBreak :: Html a Source #

blockQuote :: Html a -> Html a Source #

codeBlock :: Text -> Text -> Html a Source #

heading :: Int -> Html a -> Html a Source #

rawBlock :: Format -> Text -> Html a Source #

referenceLinkDefinition :: Text -> (Text, Text) -> Html a Source #

list :: ListType -> ListSpacing -> [Html a] -> Html a Source #

htmlInline :: Text -> Maybe (Html a) -> Html a Source #

htmlBlock :: Text -> Maybe (Html a) -> Html a Source #

htmlText :: Text -> Html a Source #

htmlRaw :: Text -> Html a Source #

addAttribute :: Attribute -> Html a -> Html a Source #

renderHtml :: Html a -> Text Source #

escapeURI :: Text -> Text Source #

escapeHtml :: Text -> Builder Source #