Skip to content

Commit 966a2e0

Browse files
committed
fixed syntax
1 parent 8509872 commit 966a2e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LatexFilterExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class LatexFilterExtension extends \Twig\Extension\AbstractExtension
99
public function getFilters(): array
1010
{
1111
return [
12-
new TwigFilter('nl2tex', [$this, 'nl2tex'], ['pre_escape' => 'tex', 'is_safe' => true]),
12+
new TwigFilter('nl2tex', [$this, 'nl2tex'], ['pre_escape' => 'tex', 'is_safe' => ['tex']]),
1313
];
1414
}
1515

0 commit comments

Comments
 (0)