Merge branch '501-fix-deprecation-markdown-parser' into 'master'

Resolve "Depréciation dans le paquet de transformation markdown"

Closes #501

See merge request Chill-Projet/chill-bundles!966
This commit is contained in:
2026-02-23 14:50:15 +00:00
3 changed files with 9 additions and 2 deletions

View File

@@ -0,0 +1,7 @@
kind: Fixed
body: Fix deprecation in the markdown rendering
time: 2026-02-23T15:44:05.800494138+01:00
custom:
Issue: "501"
MR: "966"
SchemaChange: No schema change

View File

@@ -41,6 +41,6 @@ final class ChillMarkdownRenderExtension extends AbstractExtension
public function renderMarkdownToHtml(?string $var): string
{
return $this->parsedown->parse((string) $var);
return $this->parsedown->text((string) $var);
}
}

View File

@@ -37,7 +37,7 @@ final class ChillMarkdownRenderExtensionTest extends TestCase
MD;
private const UNAUTHORIZED_HTML = <<<'HTML'
<p>&lt;script&gt;alert(&quot;ok&quot;);&lt;/script&gt;</p>
<p>&lt;script&gt;alert("ok");&lt;/script&gt;</p>
HTML;
private const UNAUTHORIZED_MARKDOWN = <<<'MD'