HeadingToken

class HeadingToken(data: TokenData, val depth: Int, val isDecorative: Boolean, val content: String, val customId: String?) : Token

Example:

# Heading

Parameters

depth

amount of # characters, from 1 to 6

isDecorative

whether a ! follows the hashes, marking the heading as not part of the structure

content

raw heading text, delimiters and the trailing # run excluded

customId

raw {#custom-id} identifier, if any

See also

Constructors

Link copied to clipboard
constructor(data: TokenData, depth: Int, isDecorative: Boolean, content: String, customId: String?)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val depth: Int
Link copied to clipboard

Functions

Link copied to clipboard
open override fun <T> accept(visitor: TokenVisitor<T>): T

Accepts a visitor.