Skip to content

Commit

Permalink
Update to commonmark 1.3 which now includes most extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga committed Feb 11, 2020
1 parent 5b87266 commit 3b7079a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
6 changes: 1 addition & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
8 changes: 4 additions & 4 deletions src/Markdown/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
];
});
}
Expand Down

0 comments on commit 3b7079a

Please sign in to comment.