Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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 hashes
Filename, size django-markdowny-0.1.2.tar.gz (3.1 MB) File type Source Python version None Upload date Hashes View hashes

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 SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page