Closed SilkeKohl closed 9 months ago
How to use the official filters from Twig? I'm trying to use markdown_to_html.
It is installed using Composer (composer require twig/markdown-extra)
composer require twig/markdown-extra
I tried adding it to the configuration $config = [ 'filters' => ['markdown_to_html'] ]
$config = [ 'filters' => ['markdown_to_html'] ]
I also tried to add: use Twig\Extra\Markdown\DefaultMarkdown; use Twig\Extra\Markdown\MarkdownRuntime; use Twig\RuntimeLoader\RuntimeLoaderInterface;
use Twig\Extra\Markdown\DefaultMarkdown; use Twig\Extra\Markdown\MarkdownRuntime; use Twig\RuntimeLoader\RuntimeLoaderInterface;
Is this generally supported by codeigniter-ss-twig?
See https://github.com/kenjis/ci4-twig-sample/blob/main/app/Controllers/Markdown_sample.php
Thank you! It is working properly.
How to use the official filters from Twig? I'm trying to use markdown_to_html.
It is installed using Composer (
composer require twig/markdown-extra
)I tried adding it to the configuration
$config = [ 'filters' => ['markdown_to_html'] ]
I also tried to add:
use Twig\Extra\Markdown\DefaultMarkdown; use Twig\Extra\Markdown\MarkdownRuntime; use Twig\RuntimeLoader\RuntimeLoaderInterface;
Is this generally supported by codeigniter-ss-twig?