Package-level declarations

Types

Link copied to clipboard
class AstRoot(val children: List<Node>) : NestableNode

The root of a node tree.

Link copied to clipboard
typealias Document = AstRoot
Link copied to clipboard
typealias InlineContent = List<Node>

Represents an ordered sequence of inline nodes, such as text, links, images, etc., that can be part of a block's text, such as a paragraph or heading.

Link copied to clipboard

A generic group of inline nodes used as input for Quarkdown functions.

Link copied to clipboard
class MarkdownContent(val children: List<Node>) : NestableNode

A generic group of block nodes used as input for Quarkdown functions.

Link copied to clipboard
interface NestableNode : Node

A node that may contain a variable number of nested nodes as children.

Link copied to clipboard
interface Node

A node of the abstract syntax tree - can be either a block or an inline element.

Link copied to clipboard

A node that contains a single child node.

Functions

Link copied to clipboard
fun <T> List<Node>.acceptAll(visitor: NodeVisitor<T>): List<T>

Accepts a visitor for each node sequentially.

Link copied to clipboard
fun <T> List<Node>.parallelAcceptAll(visitor: NodeVisitor<T>, minItems: Int = 50): List<T>

Accepts a visitor for each node, executing visits in parallel when beneficial. Falls back to sequential execution for small lists.