From 8f7c270115fd78df9ce4f9b85001472d0ba41dcc Mon Sep 17 00:00:00 2001 From: bangnokia Date: Mon, 22 Mar 2021 14:42:29 +0700 Subject: [PATCH] chagen parsedown to parsedown extra driver --- app/MarkdownParser.php | 4 ++-- composer.json | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/MarkdownParser.php b/app/MarkdownParser.php index d95728e..d6b2e2c 100644 --- a/app/MarkdownParser.php +++ b/app/MarkdownParser.php @@ -2,7 +2,7 @@ namespace App; -use Parsedown; +use ParsedownExtra; class MarkdownParser implements MarkdownParserInterface { @@ -10,7 +10,7 @@ class MarkdownParser implements MarkdownParserInterface public function __construct() { - $this->driver = new Parsedown(); + $this->driver = new ParsedownExtra(); } public function parse(string $text): string diff --git a/composer.json b/composer.json index 15228d4..d3b39b9 100644 --- a/composer.json +++ b/composer.json @@ -14,6 +14,7 @@ "require": { "php": "^7.4", "erusev/parsedown": "^1.7", + "erusev/parsedown-extra": "^0.8.1", "illuminate/view": "^8.0", "laravel-zero/framework": "^8.0", "yosymfony/resource-watcher": "^3.0"