public function parse(Node $container, ReferenceMap $referenceMap)
{
$inlineParserContext = new InlineParserContext($container, $referenceMap);
while (($character = $inlineParserContext->getCursor()->getCharacter()) !== null) {
if (!$this->parseCharacter($character, $inlineParserContext)) {
$this->addPlainText($character, $container, $inlineParserContext);
}
}
$this->processInlines($inlineParserContext);
}