From fbc852509373e36c9427a6c5f3e224b8986edf96 Mon Sep 17 00:00:00 2001 From: Gerry Demaret Date: Mon, 11 May 2020 12:42:00 +0800 Subject: [PATCH] Fix transform call in 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. --- src/MichelfMarkdown.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MichelfMarkdown.php b/src/MichelfMarkdown.php index 0cbb095..2660a7f 100644 --- a/src/MichelfMarkdown.php +++ b/src/MichelfMarkdown.php @@ -29,6 +29,6 @@ public function __construct(MarkdownExtra $converter = null) public function convert(string $body): string { - return $this->converter->defaultTransform($body); + return $this->converter->transform($body); } }