Block
A node in the block structure of a CommonMark document.
Block nodes form the top-level structure of a document. The sealed hierarchy mirrors the block node types defined in the CommonMark 0.31.2 specification.
Inheritors
Types
Link copied to clipboard
Column alignment in a GFM table.
Link copied to clipboard
A block quotation (> ...).
Link copied to clipboard
data class BulletList(val tight: Boolean, val marker: Char, val items: List<Block.ListItem>) : Block
An unordered (bullet) list.
Link copied to clipboard
A fenced code block delimited by backtick or tilde runs.
Link copied to clipboard
A block of code indented by 4 spaces (or 1 tab).
Link copied to clipboard
data class LinkReferenceDefinition(val label: String, val destination: String, val title: String?) : Block
A link reference definition ([label]: destination "title").
Link copied to clipboard
data class OrderedList(val tight: Boolean, val start: Int, val delimiter: Char, val items: List<Block.ListItem>) : Block
An ordered list.
Link copied to clipboard
data class Table(val alignments: List<Block.Alignment>, val header: Block.TableRow, val body: List<Block.TableRow>) : Block
A GFM table (extension).
Link copied to clipboard
A row of cells in a table.
Link copied to clipboard
A thematic break (---, ***, or ___).