Markdown template filter for Django following CommonMark specs (markdown-it-py).
Project description
django-markdownit
Markdown template filter for Django following CommonMark specs.
Installation
-
Install the package:
poetry add django-markdownit
or using pip:
pip install django-markdownit
-
Add
markdownit
to yourINSTALLED_APPS
:INSTALLED_APPS = [ # ... 'markdownit', ]
Usage
-
Load the template tag library in your template:
{% load markdownit %}
-
Use the
markdownit
filter on a string:{{ my_string|markdownit }}
Credits
- Inspired by django-markdownify.
- Using markdown-it-py for Markdown rendering.
- Using nh3/ammonia for HTML sanitization.
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
Built Distribution
Close
Hashes for django_markdownit-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d78f1e4d4c680554902055fb8f36fd81709ec704139a3f936425e10b905b2678 |
|
MD5 | 623af41e378e65b6a122e741ee2b22c0 |
|
BLAKE2b-256 | 183eaadab4b3b5573dcd9bc911f4e67c344805b5bc0efdde1261de6df93e6b7e |