EmphasisLikeParser

class EmphasisLikeParser(parsers: DelimiterParser) : SequentialParser

Should be used to parse emphasis-like elements with the same priority that should be aware of each other. Accepts a list of DelimiterParser that finds target delimiters runs and stores containing delimiters in the shared delimiters list. For each of those delimiters, this parser tries to find a matching closing delimiter. Matching information then is passed back to the DelimiterParser that should use it to create actual tree nodes.

Constructors

EmphasisLikeParser
Link copied to clipboard
common
fun EmphasisLikeParser(vararg parsers: DelimiterParser)

Functions

parse
Link copied to clipboard
common
open override fun parse(tokens: TokensCache, rangesToGlue: List<IntRange>): SequentialParser.ParsingResult