['html']]; return [ new TwigFilter('markdown', [$this, 'render'], $options), new TwigFilter('md', [$this, 'render'], $options), ]; } public function render(string $text, bool $escapeHtml = true): string { return $this->renderer->setSafeMode($escapeHtml)->text($text); } }