HeadingRecognizer

Recognizes a heading opened by one to six #. The trailing # run and the whitespace before it are dropped, and the heading absorbs every blank line that follows it.

Properties

Link copied to clipboard

Whether the recognizer only opens at the start of a line.

Functions

Link copied to clipboard
fun depthAt(line: Line): Int?
Link copied to clipboard
open override fun open(cursor: LineCursor): BlockMatch?
Link copied to clipboard
fun opensAt(line: Line): Boolean

A decorative heading is a heading: it opens one and interrupts a paragraph just as a plain one does.