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.2.tar.gz
(5.9 MB
view hashes)
Built Distribution
Close
Hashes for django_markdowny-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 061d59f0567c0d61d652e367164210080aa2b66b675e4c49a18ee3654dc531b5 |
|
MD5 | 59ddf36fd07118c96dec1c49ae2bcb23 |
|
BLAKE2b-256 | 343ddb367b83b52472429edd9476c909ddd569e91e4f4722609beb4671a87ade |