A Django template tag to convert Markdown to HTML
Project description
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>
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.1.2.tar.gz
(3.1 MB
view hashes)
Built Distribution
Close
Hashes for django_markdowny-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ae754c3fdebc80f03d9de408eb847fdb495cbd46a5620f39937b0c57794a130 |
|
MD5 | c7e5eee913abef607af4a2de4a6a75b5 |
|
BLAKE2b-256 | 88148865e1ae9f837070173ff738f65ab8daf8b9a18d66a42c05f767fd407299 |