From 85a8a47bb1f0516076ea62ee288525ba8975f62a Mon Sep 17 00:00:00 2001 From: Gerry Demaret Date: Mon, 11 May 2020 15:50:47 +0800 Subject: [PATCH] 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. --- extra/markdown-extra/src/MichelfMarkdown.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extra/markdown-extra/src/MichelfMarkdown.php b/extra/markdown-extra/src/MichelfMarkdown.php index 0cbb09521..2660a7f04 100644 --- a/extra/markdown-extra/src/MichelfMarkdown.php +++ b/extra/markdown-extra/src/MichelfMarkdown.php @@ -29,6 +29,6 @@ class MichelfMarkdown implements MarkdownInterface public function convert(string $body): string { - return $this->converter->defaultTransform($body); + return $this->converter->transform($body); } }