mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-02-24 01:00:00 +00:00
Resolve "Depréciation dans le paquet de transformation markdown"
This commit is contained in:
7
.changes/unreleased/Fixed-20260223-154405.yaml
Normal file
7
.changes/unreleased/Fixed-20260223-154405.yaml
Normal 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
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ final class ChillMarkdownRenderExtensionTest extends TestCase
|
||||
MD;
|
||||
|
||||
private const UNAUTHORIZED_HTML = <<<'HTML'
|
||||
<p><script>alert("ok");</script></p>
|
||||
<p><script>alert("ok");</script></p>
|
||||
HTML;
|
||||
|
||||
private const UNAUTHORIZED_MARKDOWN = <<<'MD'
|
||||
|
||||
Reference in New Issue
Block a user