Add another paragraph about mentioning another needed library

This commit is contained in:
Oskar Stark
2020-09-25 08:18:16 +02:00
committed by Fabien Potencier
parent 4d47f96470
commit 4584576c87
+6 -1
View File
@@ -27,11 +27,13 @@ removed consistently before conversion:
Hello!
{% endapply %}
You can also use the filter on an included file:
You can also use the filter on an included file or a variable:
.. code-block:: twig
{{ include('some_template.markdown.twig')|markdown_to_html }}
{{ changelog|markdown_to_html }}
.. note::
@@ -63,3 +65,6 @@ You can also use the filter on an included file:
}
}
});
Afterwards you need to install a markdown library of your choice. Some of them are
mentioned in the ``require-dev`` section of the ``twig/markdown-extra`` package.