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