mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-31 12:37:15 +00:00
Fix transform call to Michelf\MarkdownExtra
As per the documentation here: https://michelf.ca/projects/php-markdown/configuration/#configure Calling defaultTransform() will use the default options, thus ignoring the "hard_wrap" option. Calling transform() instead, which takes the options into account.
This commit is contained in:
committed by
Fabien Potencier
parent
de4e46e77e
commit
85a8a47bb1
@@ -29,6 +29,6 @@ class MichelfMarkdown implements MarkdownInterface
|
||||
|
||||
public function convert(string $body): string
|
||||
{
|
||||
return $this->converter->defaultTransform($body);
|
||||
return $this->converter->transform($body);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user