A template filter to convert HTML strings to Markdown using Markdownify.
- Add "markdownify_filter" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [
...
'markdownify_filter',
]
-
Load the filter in the template using
{% load markdownify_filter %}
. -
Us it on a HTML string like so:
{{ HTML.string | markdownify }}