mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-30 04:07:07 +09:00
1 parent
e94e42b09d
commit
4becefb992
1 file changed
+2
-1
@@ -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 = '...')
|
||||
|
||||
Reference in new issue
Block a user