This commit is contained in:
Belle Aerni authored and GitHub committed 2023-01-15 09:59:46 +01:00
1 parent e94e42b09d
commit 4becefb992
1 file changed
+2 -1
+2 -1
View File
@@ -305,8 +305,9 @@ function twig_size_filter($value)
function twig_markdown_filter(Twig\Environment $env, $value)
{
$content = $value ?? '';
$markdownParser = new GithubFlavoredMarkdownConverter(['html_input' => 'escape', 'allow_unsafe_links' => false, 'max_nesting_level' => 50]);
return $markdownParser->convert($value);
return $markdownParser->convert($content);
}
function twig_truncate_filter(Twig\Environment $env, $value, $length = 30, $preserve = false, $separator = '...')