Package-level declarations

Types

Link copied to clipboard
object BlankNode : Node

Any unknown node type (should not happen).

Link copied to clipboard
class BlockQuote(val type: BlockQuote.Type? = null, val attribution: InlineContent? = null, val content: List<Node>) : NestableNode

A block quote.

Link copied to clipboard
class Code(val content: String, val language: String?, val showLineNumbers: Boolean = true, val highlight: Boolean = true, val focusedLines: Range? = null, val caption: InlineContent? = null, val referenceId: String? = null) : LocationTrackableNode, CrossReferenceableNode, CaptionableNode, LocalizedKind

A code block.

Link copied to clipboard

Creation of a footnote definition, referenceable by a com.quarkdown.core.ast.base.inline.ReferenceFootnote.

Link copied to clipboard
class Heading(val depth: Int, val text: InlineContent, val customId: String? = null, val canBreakPage: Boolean = true, val canTrackLocation: Boolean = true, val excludeFromTableOfContents: Boolean = false) : TextNode, Identifiable, LocationTrackableNode, CrossReferenceableNode, LocalizedKind

A heading defined via prefix symbols. A heading is identifiable, as it can be looked up in the document and can be referenced. It is also location trackable, meaning its position in the document hierarchy is determined, and possibly displayed.

Link copied to clipboard

A horizontal line (thematic break).

Link copied to clipboard
class Html(val content: String) : Node

An HTML block.

Link copied to clipboard
class LinkDefinition(val label: InlineContent, val url: String, val title: InlineContent?, val fileSystem: FileSystem? = null) : LinkNode, TextNode

Creation of a referenceable link definition.

Link copied to clipboard
object Newline : Node

A blank line.

Link copied to clipboard
class Paragraph(val text: InlineContent) : TextNode

A general paragraph.

Link copied to clipboard
class Table(val columns: List<Table.Column>, val caption: InlineContent? = null, val referenceId: String? = null) : NestableNode, LocationTrackableNode, CaptionableNode, CrossReferenceableNode, LocalizedKind

A table, consisting of columns, each of which has a header and multiple cells. A table is location-trackable since, if requested by the user, it may show a caption displaying its location-based label.

Properties

Link copied to clipboard

Whether this heading is a marker.

Functions

Link copied to clipboard
fun Heading.Companion.createSectionHeading(title: InlineContent?, localizationKey: String, context: Context, depth: Int = 1, customId: String? = null, canBreakPage: Boolean = true, canTrackLocation: Boolean = false, includeInTableOfContents: Boolean = false): Heading?

Creates an auto-generated Heading for a structural section of the document (e.g. table of contents, bibliography).

Link copied to clipboard

Formats the index of this footnote definition according to the numbering format defined in the document, or a default numbering format if none is defined. The default format is 1, 2, 3, ... (decimal numbering).

Link copied to clipboard
Link copied to clipboard

Creates an invisible Heading that acts as a marker that can be referenced by other elements in the document. A useful use case would be, for example, in combination with a com.quarkdown.core.context.toc.TableOfContents. Depth 0 cannot be achieved with plain Markdown, but it can be supplied by the Quarkdown function .marker.

Link copied to clipboard

Registers the footnote index of this node within the document handled by context, according to the order of references to it. It is not updated if an index is already set.