Skip to content

Commit

Permalink
minor #3400 Add another paragraph about mentioning another needed lib…
Browse files Browse the repository at this point in the history
…rary (OskarStark)

This PR was submitted for the 3.x branch but it was squashed and merged into the 2.x branch instead.

Discussion
----------

Add another paragraph about mentioning another needed library

Commits
-------

4584576 Add another paragraph about mentioning another needed library
  • Loading branch information
fabpot committed Sep 25, 2020
2 parents 4d47f96 + 4584576 commit 573c50d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion doc/filters/markdown_to_html.rst
Expand Up @@ -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::

Expand Down Expand Up @@ -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.

0 comments on commit 573c50d

Please sign in to comment.