You are here

public function Extension::getFilters in Markdown 3.0.x

File

src/Twig/Markdown/Extension.php, line 42

Class

Extension

Namespace

Drupal\markdown\Twig\Markdown

Code

public function getFilters() {
  return [
    'markdown' => new \Twig_SimpleFilter('markdown', [
      $this,
      'parse',
    ], [
      'is_safe' => [
        'html',
      ],
    ]),
  ];
}