Skip to content

Commit

Permalink
Update Markdom.php
Browse files Browse the repository at this point in the history
Since league/commonmark 2.2.0 convertToHtml() is deprecated.
  • Loading branch information
Fot0n authored Dec 15, 2023
1 parent f6c776c commit 3e2e7ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Markdom.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function setClasses($classes): self
public function toHtml($markdown)
{
$this->markdown = $markdown;
$html = $this->converter->convertToHtml($this->markdown);
$html = $this->converter->convert($this->markdown);

$dom = HtmlPageCrawler::create('<div>' . $html . '</div>');

Expand Down Expand Up @@ -150,4 +150,4 @@ public function getAvailableThemes()
return getAvailableStyleSheets();
}

}
}

0 comments on commit 3e2e7ad

Please sign in to comment.