Markdown template filter for Django following CommonMark specs (markdown-it-py).
Project description
django-markdown-it
Markdown template filter for Django following CommonMark specs.
Installation
-
Install the package:
poetry add django-markdown-it
or using pip:
pip install django-markdown-it
-
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.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 689820b11cdf33f628ef430f9d61b6e1557af31394429a1fc8b7116687d8597e |
|
MD5 | 233611a833f3472efe360ef17df94996 |
|
BLAKE2b-256 | 1e54f51dc8878a503fed85a795a5ceec7cd9df0915468ab68e23647cef3ee664 |