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
markdownitto yourINSTALLED_APPS:INSTALLED_APPS = [ # ... 'markdownit', ]
Usage
-
Load the template tag library in your template:
{% load markdownit %}
-
Use the
markdownitfilter on a string:{{ my_string|markdownit }}
Credits
- Inspired by django-markdownify.
- Using markdown-it-py for Markdown rendering.
- Using nh3/ammonia for HTML sanitization.
Metadata
Release files for django-markdownit 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_markdownit-0.5.0.tar.gz | 1.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_markdownit-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.3 kB
Release files / django_markdownit-0.5.0.tar.gz
| Download URL | django_markdownit-0.5.0.tar.gz |
|---|---|
| Size | 1.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df87c61727bac43d24733041624a35b2a10bdf6db29a6e00f941cfbde35b0746
|
|
BLAKE2b-256 checksum How to use checksums |
5963090cc1e3aab2821bf9b6c15629289424df834e97a587be7bdb9ee4cd3b99
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.5 Darwin/23.6.0
|
Release files / django_markdownit-0.5.0-py3-none-any.whl
| Download URL | django_markdownit-0.5.0-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d78f1e4d4c680554902055fb8f36fd81709ec704139a3f936425e10b905b2678
|
|
BLAKE2b-256 checksum How to use checksums |
183eaadab4b3b5573dcd9bc911f4e67c344805b5bc0efdde1261de6df93e6b7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.5 Darwin/23.6.0
|