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
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.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_markdownit-0.5.0.tar.gz.
File metadata
- Download URL: django_markdownit-0.5.0.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.5 Darwin/23.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df87c61727bac43d24733041624a35b2a10bdf6db29a6e00f941cfbde35b0746
|
|
| MD5 |
cc2ac11cadcb28c30413df1fb99170e5
|
|
| BLAKE2b-256 |
5963090cc1e3aab2821bf9b6c15629289424df834e97a587be7bdb9ee4cd3b99
|
File details
Details for the file django_markdownit-0.5.0-py3-none-any.whl.
File metadata
- Download URL: django_markdownit-0.5.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.5 Darwin/23.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d78f1e4d4c680554902055fb8f36fd81709ec704139a3f936425e10b905b2678
|
|
| MD5 |
623af41e378e65b6a122e741ee2b22c0
|
|
| BLAKE2b-256 |
183eaadab4b3b5573dcd9bc911f4e67c344805b5bc0efdde1261de6df93e6b7e
|