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:
Gerry Demaret
2020-05-11 15:50:47 +08:00
committed by Fabien Potencier
parent de4e46e77e
commit 85a8a47bb1
+1 -1
View File
@@ -29,6 +29,6 @@ class MichelfMarkdown implements MarkdownInterface
public function convert(string $body): string
{
return $this->converter->defaultTransform($body);
return $this->converter->transform($body);
}
}