| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Text.Commonmark.Syntax
Contents
Description
A definition of Commonmark's AST
Documentation
A Document
Instances
| Functor Doc Source # | |
| Foldable Doc Source # | |
| Traversable Doc Source # | |
| Eq t => Eq (Doc t) Source # | |
| Data t => Data (Doc t) Source # | |
| Read t => Read (Doc t) Source # | |
| Show t => Show (Doc t) Source # | |
| Generic (Doc t) Source # | |
| Monoid t => Monoid (Doc t) Source # | |
| NFData t => NFData (Doc t) Source # | |
| type Rep (Doc t) Source # | |
Block Elements
Block elements
Constructors
| ThematicBreak | Thematic break |
| Heading HeadingLevel (Inlines t) | Heading: level, sequnce of inlines that define content |
| CodeBlock (Maybe t) t | Block of code: info string, literal content |
| HtmlBlock t | Raw HTML Block |
| Para (Inlines t) | Paragraph (a grouped sequence of inlines) |
| Quote (Blocks t) | Block Quote (a quoted sequence of blocks) |
| List ListType Bool (Seq (Blocks t)) | List: Type of the list, tightness, a sequnce of blocks (list item) |
Instances
| Functor Block Source # | |
| Foldable Block Source # | |
| Traversable Block Source # | |
| Eq t => Eq (Block t) Source # | |
| Data t => Data (Block t) Source # | |
| Ord t => Ord (Block t) Source # | |
| Read t => Read (Block t) Source # | |
| Show t => Show (Block t) Source # | |
| Generic (Block t) Source # | |
| NFData t => NFData (Block t) Source # | |
| type Rep (Block t) Source # | |
data HeadingLevel Source #
Constructors
| Ordered Delimiter Int | |
| Bullet BulletMarker |
data BulletMarker Source #
Inline Elements
Inline elements
Constructors
| Str t | Text (string) |
| Code t | Inline code |
| Emph (Inlines t) | Emphasized text (a sequence of inlines) |
| Strong (Inlines t) | Strongly emphasized text (a sequence of inlines) |
| Link (Inlines t) t (Maybe t) | Hyperlink: visible link text (sequence of inlines), destination, title |
| Image (Inlines t) t (Maybe t) | Image hyperlink: image description, destination, title |
| RawHtml t | Inline Raw HTML tag |
| SoftBreak | A regular linebreak. A conforming renderer may render a soft line break in HTML either as line break or as a space. |
| HardBreak | A line break that is marked as hard (either with spaces or
backslash, see the spec for details). In html it would be rendered
as |
Instances
| Functor Inline Source # | |
| Foldable Inline Source # | |
| Traversable Inline Source # | |
| Eq t => Eq (Inline t) Source # | |
| Data t => Data (Inline t) Source # | |
| Ord t => Ord (Inline t) Source # | |
| Read t => Read (Inline t) Source # | |
| Show t => Show (Inline t) Source # | |
| IsString t => IsString (Inline t) Source # | |
| Generic (Inline t) Source # | |
| NFData t => NFData (Inline t) Source # | |
| type Rep (Inline t) Source # | |