A Django template tag to convert Markdown into HTML
Project description
Django Markdowny is a Django template tag application to convert Markdown into HTML with Python-Markdown.
Unlike other Django-Markdown filters, Markdowny supports all of the options 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>
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-markdowny-0.2.1.tar.gz
(5.9 MB
view hashes)
Built Distribution
Close
Hashes for django_markdowny-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad03309921e2232f7edbff8b6fcc1b308bda1ac8fe2d503f68072b8938130722 |
|
MD5 | 18ab0e736b9b8317d3f9887ebff0814c |
|
BLAKE2b-256 | 7ed19619a42d4169d9f78637ac1243fc2edc31c8346b051107ed41efba775bf6 |