abstract class
TUI::Markdown::Block
- TUI::Markdown::Block
- Reference
- Object
Overview
A parsed, width-agnostic Markdown document element. Block.parse produces a flat Array(Block) — nesting (e.g. a list's items, a blockquote's depth) is captured as data on the node itself (ListItem#depth, Blockquote#depth) rather than as a tree, since Layout.layout only ever needs to walk the array once in order.
Direct Known Subclasses
- TUI::Markdown::Blockquote
- TUI::Markdown::CodeBlock
- TUI::Markdown::Heading
- TUI::Markdown::HRule
- TUI::Markdown::ListBlock
- TUI::Markdown::Paragraph
- TUI::Markdown::Table