commonmark-pandoc-0.2.3: Bridge between commonmark and pandoc AST.

Safe Haskell | None
Language | Haskell2010

Commonmark.Pandoc

# Documentation

newtype Cm b a Source #

Constructors

Cm |

Fields

- unCm :: a

#### Instances

Instances details

Functor (Cm b) Source # |
Instance details Defined in Commonmark.Pandoc Methods fmap :: (a -> b0) -> Cm b a -> Cm b b0 Source # (<$) :: a -> Cm b b0 -> Cm b a Source #
HasAttributes (Cm a Blocks) Source # |
Instance details Defined in Commonmark.Pandoc Methods addAttributes :: Attributes -> Cm a Blocks -> Cm a Blocks Source #
HasAttributes (Cm a Inlines) Source # |
Instance details Defined in Commonmark.Pandoc Methods addAttributes :: Attributes -> Cm a Inlines -> Cm a Inlines Source #
Rangeable (Cm b Inlines) => IsInline (Cm b Inlines) Source # |

Instance details

Defined in Commonmark.Pandoc

Methods

lineBreak :: Cm b Inlines Source #

softBreak :: Cm b Inlines Source #

str :: Text -> Cm b Inlines Source #

entity :: Text -> Cm b Inlines Source #

escapedChar :: Char -> Cm b Inlines Source #

emph :: Cm b Inlines -> Cm b Inlines Source #

strong :: Cm b Inlines -> Cm b Inlines Source #

link :: Text -> Text -> Cm b Inlines -> Cm b Inlines Source #

image :: Text -> Text -> Cm b Inlines -> Cm b Inlines Source #

code :: Text -> Cm b Inlines Source #

rawInline :: Format -> Text -> Cm b Inlines Source #

Rangeable (Cm SourceRange Blocks) Source # |
Instance details Defined in Commonmark.Pandoc Methods ranged :: SourceRange -> Cm SourceRange Blocks -> Cm SourceRange Blocks Source #
Rangeable (Cm SourceRange Inlines) Source # |
Instance details Defined in Commonmark.Pandoc Methods ranged :: SourceRange -> Cm SourceRange Inlines -> Cm SourceRange Inlines Source #
Rangeable (Cm () Blocks) Source # |
Instance details Defined in Commonmark.Pandoc Methods ranged :: SourceRange -> Cm () Blocks -> Cm () Blocks Source #
Rangeable (Cm () Inlines) Source # |
Instance details Defined in Commonmark.Pandoc Methods ranged :: SourceRange -> Cm () Inlines -> Cm () Inlines Source #
Walkable Inline b => ToPlainText (Cm a b) Source # |
Instance details Defined in Commonmark.Pandoc Methods toPlainText :: Cm a b -> Text Source #
Rangeable (Cm a Blocks) => HasDiv (Cm a Blocks) Source # |
Instance details Defined in Commonmark.Pandoc Methods div_ :: Cm a Blocks -> Cm a Blocks Source #
Rangeable (Cm a Inlines) => HasSpan (Cm a Inlines) Source # |
Instance details Defined in Commonmark.Pandoc Methods spanWith :: Attributes -> Cm a Inlines -> Cm a Inlines Source #
HasEmoji (Cm b Inlines) Source # |
Instance details Defined in Commonmark.Pandoc Methods emoji :: Text -> Text -> Cm b Inlines Source #
HasMath (Cm b Inlines) Source # |
Instance details Defined in Commonmark.Pandoc Methods inlineMath :: Text -> Cm b Inlines Source # displayMath :: Text -> Cm b Inlines Source #
Rangeable (Cm b Inlines) => HasQuoted (Cm b Inlines) Source # |
Instance details Defined in Commonmark.Pandoc Methods singleQuoted :: Cm b Inlines -> Cm b Inlines Source # doubleQuoted :: Cm b Inlines -> Cm b Inlines Source #
HasStrikethrough (Cm a Inlines) Source # |
Instance details Defined in Commonmark.Pandoc Methods strikethrough :: Cm a Inlines -> Cm a Inlines Source #
HasSubscript (Cm a Inlines) Source # |
Instance details Defined in Commonmark.Pandoc Methods subscript :: Cm a Inlines -> Cm a Inlines Source #
HasSuperscript (Cm a Inlines) Source # |
Instance details Defined in Commonmark.Pandoc Methods superscript :: Cm a Inlines -> Cm a Inlines Source #
HasWikilinks (Cm b Inlines) Source # |
Instance details Defined in Commonmark.Pandoc Methods wikilink :: Text -> Cm b Inlines -> Cm b Inlines Source #
Monoid a => Monoid (Cm b a) Source # |
Instance details Defined in Commonmark.Pandoc Methods mempty :: Cm b a Source # mappend :: Cm b a -> Cm b a -> Cm b a Source # mconcat :: [Cm b a] -> Cm b a Source #
Semigroup a => Semigroup (Cm b a) Source # |
Instance details Defined in Commonmark.Pandoc Methods (<>) :: Cm b a -> Cm b a -> Cm b a Source # sconcat :: NonEmpty (Cm b a) -> Cm b a Source # stimes :: Integral b0 => b0 -> Cm b a -> Cm b a Source #
Show a => Show (Cm b a) Source # |
Instance details Defined in Commonmark.Pandoc Methods showsPrec :: Int -> Cm b a -> ShowS Source # show :: Cm b a -> String Source # showList :: [Cm b a] -> ShowS Source #
(Rangeable (Cm a Inlines), Rangeable (Cm a Blocks)) => IsBlock (Cm a Inlines) (Cm a Blocks) Source # |

Instance details

Defined in Commonmark.Pandoc

Methods

paragraph :: Cm a Inlines -> Cm a Blocks Source #

plain :: Cm a Inlines -> Cm a Blocks Source #

thematicBreak :: Cm a Blocks Source #

blockQuote :: Cm a Blocks -> Cm a Blocks Source #

codeBlock :: Text -> Text -> Cm a Blocks Source #

heading :: Int -> Cm a Inlines -> Cm a Blocks Source #

rawBlock :: Format -> Text -> Cm a Blocks Source #

referenceLinkDefinition :: Text -> (Text, Text) -> Cm a Blocks Source #

list :: ListType -> ListSpacing -> [Cm a Blocks] -> Cm a Blocks Source #

(Rangeable (Cm a Inlines), Rangeable (Cm a Blocks)) => HasAlerts (Cm a Inlines) (Cm a Blocks) Source # |
Instance details Defined in Commonmark.Pandoc Methods alert :: AlertType -> Cm a Blocks -> Cm a Blocks Source #
(Rangeable (Cm a Inlines), Rangeable (Cm a Blocks)) => HasDefinitionList (Cm a Inlines) (Cm a Blocks) Source # |
Instance details Defined in Commonmark.Pandoc Methods definitionList :: ListSpacing -> [(Cm a Inlines, [Cm a Blocks])] -> Cm a Blocks Source #
(Rangeable (Cm a Inlines), Rangeable (Cm a Blocks)) => HasFootnote (Cm a Inlines) (Cm a Blocks) Source # |
Instance details Defined in Commonmark.Pandoc Methods footnote :: Int -> Text -> Cm a Blocks -> Cm a Blocks Source # footnoteList :: [Cm a Blocks] -> Cm a Blocks Source # footnoteRef :: Text -> Text -> Cm a Blocks -> Cm a Inlines Source #
HasPipeTable (Cm a Inlines) (Cm a Blocks) Source # |
Instance details Defined in Commonmark.Pandoc Methods pipeTable :: [ColAlignment] -> [Cm a Inlines] -> [[Cm a Inlines]] -> Cm a Blocks Source #
(Rangeable (Cm a Inlines), Rangeable (Cm a Blocks)) => HasTaskList (Cm a Inlines) (Cm a Blocks) Source # |
Instance details Defined in Commonmark.Pandoc Methods taskList :: ListType -> ListSpacing -> [(Bool, Cm a Blocks)] -> Cm a Blocks Source #