newInlineLexer
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