mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-24 15:56:26 +00:00
84982072c7
The `html_to_markdown` filter emits plain Markdown text, so the `is_safe` annotation is dropped entirely and autoescape now handles its output according to the surrounding context. The `markdown_to_html` and `inline_css` filters emit HTML, not text safe in every escaping context, so `is_safe => ['all']` produced unescaped HTML when their output was interpolated into a JS, CSS or URL context. The annotation is now `is_safe => ['html']`.
Twig Markdown Extension
This package is a Twig extension that provides the following:
-
markdown_to_htmlfilter: generates HTML from a Markdown block; -
html_to_markdownfilter: generates Markdown from an HTML block.