diff --git a/composer.json b/composer.json index aeb5fe8b23..93f8820297 100644 --- a/composer.json +++ b/composer.json @@ -14,11 +14,7 @@ "guzzlehttp/guzzle": "^6.3", "laravel/framework": "5.6.* || 5.7.* || 5.8.* || ^6.0", "laravel/helpers": "^1.1", - "league/commonmark": "^1.1", - "league/commonmark-ext-autolink": "^1.0", - "league/commonmark-ext-smartpunct": "^1.1", - "league/commonmark-ext-strikethrough": "^1.0", - "league/commonmark-ext-table": "^2.1", + "league/commonmark": "^1.3", "league/csv": "^9.0", "league/glide": "^1.1", "pixelfear/composer-dist-plugin": "^0.1.0", diff --git a/src/Markdown/Parser.php b/src/Markdown/Parser.php index f6c5d637f9..8bd64b76bb 100644 --- a/src/Markdown/Parser.php +++ b/src/Markdown/Parser.php @@ -5,8 +5,8 @@ use Closure; use League\CommonMark\CommonMarkConverter; use League\CommonMark\Environment; -use League\CommonMark\Ext\Autolink\AutolinkExtension; -use League\CommonMark\Ext\SmartPunct\SmartPunctExtension; +use League\CommonMark\Extension\Autolink\AutolinkExtension; +use League\CommonMark\Extension\SmartPunct\SmartPunctExtension; use Statamic\Support\Arr; class Parser @@ -78,9 +78,9 @@ public function withStatamicDefaults() { return $this->newInstance()->addExtensions(function () { return [ - new \League\CommonMark\Ext\Table\TableExtension, + new \League\CommonMark\Extension\Table\TableExtension, new \Webuni\CommonMark\AttributesExtension\AttributesExtension, - new \League\CommonMark\Ext\Strikethrough\StrikethroughExtension, + new \League\CommonMark\Extension\Strikethrough\StrikethroughExtension, ]; }); }