We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8509872 commit 966a2e0Copy full SHA for 966a2e0
src/LatexFilterExtension.php
@@ -9,7 +9,7 @@ class LatexFilterExtension extends \Twig\Extension\AbstractExtension
9
public function getFilters(): array
10
{
11
return [
12
- new TwigFilter('nl2tex', [$this, 'nl2tex'], ['pre_escape' => 'tex', 'is_safe' => true]),
+ new TwigFilter('nl2tex', [$this, 'nl2tex'], ['pre_escape' => 'tex', 'is_safe' => ['tex']]),
13
];
14
}
15
0 commit comments