Markdown template filter for Django following CommonMark specs and using markdown-it-py under the hood.
Project description
django-markdown-it
Markdown template filter for Django following CommonMark specs and using markdown-it-py under the hood.
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.
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_markdown_it-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4eef9af4f0782978ac56182af086749cd309dc628da74fa850396a1eec098768 |
|
MD5 | caf5bcfd5e544dd7c902e054ef24598f |
|
BLAKE2b-256 | 3688b0cde458e7a1be9184d5d99080b0fb89d165533c9049f374eebaa3967a43 |