|
@@ -25,7 +25,7 @@ class ColorParser implements InlineParserInterface
|
|
|
$colorNode = new ColorText($text, $color);
|
|
|
|
|
|
$inlineContext->getContainer()->appendChild($colorNode);
|
|
|
- $inlineContext->getCursor()->advanceBy(mb_strlen($matches[0]));
|
|
|
+ $inlineContext->getCursor()->advanceBy($inlineContext->getFullMatchLength());
|
|
|
|
|
|
return true;
|
|
|
}
|