Sangfroid преди 2 месеца
родител
ревизия
7f37125f68
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      src/Service/MarkdownParser.php

+ 2 - 0
src/Service/MarkdownParser.php

@@ -2,6 +2,7 @@
 
 namespace App\Service;
 
+use App\Markdown\ColorExtension;
 use Embed\Embed;
 use League\CommonMark\Environment\Environment;
 use League\CommonMark\Extension\Autolink\AutolinkExtension;
@@ -63,6 +64,7 @@ class MarkdownParser
         $environment->addExtension(new AutolinkExtension());
         $environment->addExtension(new TableExtension());
         $environment->addExtension(new EmbedExtension());
+        $environment->addExtension(new ColorExtension());
 
         $this->converter = new MarkdownConverter($environment);
     }