Markdown template filter for Django
Switch branches/tags
Clone or download
Latest commit 790cf04 Jan 19, 2018
Failed to load latest commit information.
docs Update docs Jan 19, 2018
markdownify Update and add docs Jan 19, 2018
.gitignore Add .rst docs Jan 19, 2018
LICENSE Initial commit Jan 19, 2016 pip package configuration files. Jan 19, 2016 Add pypi to README Jan 19, 2018 Update Jan 19, 2018

Django Markdownify - A Django Markdown filter

Django Markdownify is a template filter to convert Markdown to HTML in Django. Markdown is converted to HTML and sanitized.

Read the full documentation on Read the docs or check out the package on pypi.


Load the tag inside your template:

{% load markdownify %}

Then you can change markdown to html as follows:

{{ 'text'|markdownify }}


{{ somevariable|markdownify }}


{% load markdownify %}
{{'Some *test* [link](#)'|markdownify }}

Is transformed to:

  Some <em>test</em> <a href="#">link</a>


Read the full documentation on Read the docs.


This filter is a slightly richer and packaged version of the snippet: using-markdown-django-17.