Browse Source

On utilise une méthode de inlinecontext pour le parser

Sangfroid 1 month ago
parent
commit
14b52fd0f7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Markdown/ColorParser.php

+ 1 - 1
src/Markdown/ColorParser.php

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