newInlineLexer

abstract fun newInlineLexer(source: CharSequence, variant: InlineLexerVariant = InlineLexerVariant.NORMAL): Lexer

Return

a new Lexer instance that tokenizes inline content

Parameters

source

raw input

variant

the variant of inline lexer to create, affecting which tokens are recognized. For example, link labels don't recognize link tokens, so the InlineLexerVariant.LINK_LABEL variant can be used