Browse Source

On utilise l'extension

Sangfroid 2 months ago
parent
commit
7f37125f68
1 changed files with 2 additions and 0 deletions
  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);
     }