Skip to main content

A Django template tag to convert Markdown to HTML

Project description

PyPI version Build status

Django Markdowny is a Django template tag application to convert Markdown to HTML.

Unlike other Django/Markdown filters, Markdowny supports all of the options available in Python Markdown via settings.

Install

$ pip install django-markdowny

Add to settings.py.

INSTALLED_APPS = [
    # ...
    'markdowny',
]

Usage

Use as a template tag.

{% load markdowny_tags %}

{% markdowny %}Hello, world!{% endmarkdowny %}

Or as a template filter.

{{ post.body|markdowny }}

Result:

<p>Hello, world!</p>

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django_markdowny-0.1.2-py2.py3-none-any.whl (6.7 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Jan 13, 2018
django-markdowny-0.1.2.tar.gz (3.1 MB) Copy SHA256 hash SHA256 Source None Jan 13, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page