Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

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.

Files for django-markdowny, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size django_markdowny-0.1.2-py2.py3-none-any.whl (6.7 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size django-markdowny-0.1.2.tar.gz (3.1 MB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page