[](http://allmychanges.com/p/python/django-markdown2/?utm_source=badge)
This is a simple app, which supplies a single template tag for markdown markup.
Dependencies
django-markdown2 depends on python-markdown2, which can be found at http://code.google.com/p/python-markdown2.
Installation and usage
Place django_markdown2 somewhere in your PYTHONPATH.
Add django_markdown2 to you INSTALLED_APPS.
In any template do:
{% load md2 %} {{ variable|markdown }}
Or specify additional extensions:
{% load md2 %} {{ variable|markdown:”safe, code-friendly, code-color” }}
Also, if you use my recent markdown2-with-blackjack from http://pypi.aartemenko.com, then you can pass additional options to code-color extension:
{% load md2 %} {{ variable|markdown:”safe, code-friendly, code-color: noclasses|linenos” }}
Options from this example switch off css classes and turn on line numbers.
Contribution
Code for this application available at: <http://github.com/svetlyak40wt/django-markdown2>
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-markdown2-0.3.1.tar.gz.
File metadata
- Download URL: django-markdown2-0.3.1.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f04748d56788f6291d8d35f0e53a58530e1c0b34981b046883b319b64c8117e2
|
|
| MD5 |
8d30383cbd8058af3ed7a97b58afd16a
|
|
| BLAKE2b-256 |
f962eadc690275c3a66e08e2d9b3bf5576285f0df896fc787faa45691900b2f6
|