mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-30 20:16:45 +00:00
Update markdown-to-html converter missing message
The `league/html-to-markdown` library does not support Markdown to HTML conversion (anymore?). The `league/commonmark` library is suitable for that.
This commit is contained in:
committed by
Fabien Potencier
parent
ce5f3889d8
commit
46d21545a6
@@ -28,7 +28,7 @@ class DefaultMarkdown implements MarkdownInterface
|
||||
} elseif (class_exists(Parsedown::class)) {
|
||||
$this->converter = new ErusevMarkdown();
|
||||
} else {
|
||||
throw new \LogicException('You cannot use the "markdown_to_html" filter as no Markdown library is available; try running "composer require league/html-to-markdown".');
|
||||
throw new \LogicException('You cannot use the "markdown_to_html" filter as no Markdown library is available; try running "composer require league/commonmark".');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user