Reading

class Reading(source: String, dialect: Dialect = Dialect())(source)

Answers dialect questions about a commonmark tree and its original source.

Constructors

Link copied to clipboard
constructor(source: String, dialect: Dialect = Dialect())

Properties

Link copied to clipboard
val document: Node

The lazily parsed document for this reader's source.

Functions

Link copied to clipboard
fun calloutClass(quote: BlockQuote): String?

Returns the class of a quote accepted as a callout at its position.

Link copied to clipboard

Returns marked quotes the dialect declined to turn into constructs.

Link copied to clipboard
fun opensAConstruct(quote: BlockQuote): Boolean

Returns whether the quote starts with any marker known to the dialect.

Link copied to clipboard
fun place(quote: BlockQuote): Found?

Returns the placed map represented by a quote.

Link copied to clipboard

Returns dialect constructs in document order.

Link copied to clipboard
fun unreadable(quote: BlockQuote): String?

Returns the source-preserving words of an out-of-bounds map.