Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard

A block quote container that will indent its contents relative to its own indentation.

Link copied to clipboard
data class AstCode(val literal: String) : AstInlineNodeType
Link copied to clipboard

Defines a subtype of Block Node that can contain other nodes.

Link copied to clipboard

Usually defines the root of a markdown document.

Link copied to clipboard
Link copied to clipboard
data class AstFencedCodeBlock(val fenceChar: Char, val fenceLength: Int, val fenceIndent: Int, val info: String, val literal: String) : AstLeafBlockNodeType
Link copied to clipboard
Link copied to clipboard
data class AstHeading(val level: Int) : AstLeafBlockNodeType
Link copied to clipboard
Link copied to clipboard
data class AstHtmlInline(val literal: String) : AstInlineNodeType
Link copied to clipboard
data class AstImage(val title: String, val destination: String) : AstInlineNodeType
Link copied to clipboard
Link copied to clipboard

Defines a node type that can only apply to inline content.

Link copied to clipboard

Defines a subtype of Block Node that can only contain plain text and full-length annotations.

Link copied to clipboard
data class AstLink(val destination: String, val title: String) : AstInlineNodeType
Link copied to clipboard
data class AstLinkReferenceDefinition(val label: String, val destination: String, val title: String) : AstLeafBlockNodeType
Link copied to clipboard

Ordered or Unordered list item.

Link copied to clipboard
class AstNode(val type: AstNodeType, val links: AstNodeLinks)

Generic AstNode implementation that can define any node in Abstract Syntax Tree.

Link copied to clipboard
class AstNodeLinks(var parent: AstNode? = null, var firstChild: AstNode? = null, var lastChild: AstNode? = null, var previous: AstNode? = null, var next: AstNode? = null)

All the pointers that can exist for a node in an AST.

Link copied to clipboard
sealed class AstNodeType

Refer to https://spec.commonmark.org/0.30/#precedence

Link copied to clipboard
data class AstOrderedList(val startNumber: Int, val delimiter: Char) : AstContainerBlockNodeType

A list type that uses numbers to mark its items.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class AstStrikethrough(val delimiter: String) : AstInlineNodeType
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class AstText(val literal: String) : AstInlineNodeType
Link copied to clipboard

A list type that marks its items with bullets to signify a lack of order.