Markdown template filter for Django
Switch branches/tags
Clone or download
Latest commit 790cf04 Jan 19, 2018
Permalink
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
MANIFEST.in pip package configuration files. Jan 19, 2016
README.md Add pypi to README Jan 19, 2018
setup.py Update setup.py Jan 19, 2018

README.md

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.

Usage

Load the tag inside your template:

{% load markdownify %}

Then you can change markdown to html as follows:

{{ 'text'|markdownify }}

or

{{ somevariable|markdownify }}

Example

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

Is transformed to:

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

Documentation

Read the full documentation on Read the docs.

Credits

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