Skip to content

Commit

Permalink
chagen parsedown to parsedown extra driver
Browse files Browse the repository at this point in the history
  • Loading branch information
bangnokia committed Mar 22, 2021
1 parent d396f3f commit 8f7c270
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/MarkdownParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

namespace App;

use Parsedown;
use ParsedownExtra;

class MarkdownParser implements MarkdownParserInterface
{
protected Parsedown $driver;

public function __construct()
{
$this->driver = new Parsedown();
$this->driver = new ParsedownExtra();
}

public function parse(string $text): string
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 8f7c270

Please sign in to comment.