type
InlineContentParser
src
@Js
mixin InlineContentParser
Parser for a type of inline content. Registered via a InlineContentParserFactory
and created by its InlineContentParserFactory.create
method. The lifetime of this is tied to each inline content snippet that is parsed, as a new instance is created for each.
methods
tryParse |
Try to parse inline content starting from the current position. |
---|
Slot Details
tryParse
src
abstract ParsedInline? tryParse(InlineParserState inlineParserState)
Try to parse inline content starting from the current position. Note that the character at the current position is one of InlineContentParserFactory.triggerChars
of the factory that created this parser.
For a given inline content snippet that is being parsed, this method can be called multiple times: each time a trigger character is encountered.
Return the result of parsing; can indicate that this parser is not interested, or that parsing was successful.