Registry / web-framework / django-markdownify

django-markdownify

JSON →
library0.9.7pypypiunverified

Markdown template filter for Django using the Python Markdown library. The current version is 0.9.6, with a release cadence of roughly once per year. It provides a simple template filter to render Markdown text as HTML, with optional parameters for allowed tags, attributes, and extensions.

pip install django-markdownify
INSTALL
IMPORT
SIG · DJANGO-MARKDOWNIFY
D
django-markdownify
web-frameworkpythonv0.9.7
Install
3.7s avg
Import
—
Disk
68MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v0.9.7 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 68.9MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 3.7s · import 0.000s · 69MB
68MB installed
● package 68MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

markdownify
✓ from markdownify import markdownify
✗ from django_markdownify.templatetags.markdownify import markdownify

Basic setup to use the markdownify filter in Django templates.

# 1. Install: pip install django-markdownify # 2. Add to INSTALLED_APPS: INSTALLED_APPS = [ ... 'django_markdownify', ] # 3. In a template: {% load markdownify %} {{ text|markdownify }} # Optional settings: MARKDOWNIFY = { "default": { "MARKDOWN_EXTENSIONS": [ "markdown.extensions.extra", "markdown.extensions.codehilite", ], "STRIP": False, "WHITELIST_TAGS": ["a", "code", "pre"], "WHITELIST_ATTRS": ["href", "class"], } }
Debug
Known issues
gotchaThe template tag module is named 'markdownify' but the app is 'django_markdownify'. Always use {% load markdownify %} in templates.
fix
Use {% load markdownify %} in your templates.
affects: all
deprecatedIn version 0.9.0, the 'safe' argument was removed. Use 'strip' and whitelist options instead.
fix
Remove 'safe' from filter usage and configure via MARKDOWNIFY settings.
affects: >=0.9.0
breakingVersion 0.9.0 changed the filter name from 'markdown' to 'markdownify'. Templates using {% load markdown %} will break.
fix
Replace {% load markdown %} with {% load markdownify %} and use {{ text|markdownify }}.
affects: >=0.9.0
Upgrade
Version history
0.9.7latest on PyPI · released May 18, 2026
Audit
Dependencies
DjangorequiredRequired for template filter integration
Agent activity
10 hits · last 30 days
node
10
Resources
django-markdownify — pip install django-markdownify · libregistry