skillfed

django-markdownx

A comprehensive Markdown editor built for Django.

django-markdownx v4.0.11 147.6K downloads/30d#11,058 on PyPI938
Permissive license BSD Active released

What it is and what it does

Django MarkdownX is a Markdown editor plugin for Django that integrates a rich editing interface into Django forms and the admin interface. It depends on Django, Pillow for image processing, and Markdown for rendering, and provides both server-side and client-side functionality for editing and previewing markdown content.

The package handles markdown editing with live preview, supports drag-and-drop image uploads directly into the editor, and includes image manipulation features such as compression and size reduction. It is designed to work across multiple editors on the same page and integrates with Django's admin interface, making it suitable for content management workflows within Django applications.

Use it for:

  • Add a markdown editor field to Django models for blog posts or documentation content.
  • Enable image uploads within markdown content using drag-and-drop in Django admin.
  • Build a content management interface where users edit markdown with live preview.
  • Customize markdown rendering and image handling for specific application requirements.
  • Support multiple markdown editors on a single Django form or page.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Django MarkdownX provides a Markdown editor widget for Django applications with live preview, drag-and-drop image uploads, and image manipulation capabilities.

Yes. The package is actively maintained, has low install friction, carries a permissive BSD license, supports modern Django versions (4.2 through 6.0) and Python 3.10+, and has no known vulnerabilities. It is well-suited for Django projects that need markdown editing with image upload capabilities.

Install

django-markdownx on PyPI

pip

pip install django-markdownx

uv

uv add django-markdownx

poetry

poetry add django-markdownx

Installing django-markdownx

Before you install

Low install friction with a pure Python wheel distribution. Actively maintained with a recent release; last commit on 2026-07-21 and 938 repository stars indicate ongoing development and community use.

License in practice

BSD license is permissive, allowing use in both open-source and commercial projects with minimal restrictions.

Quickstart

pip install django-markdownx

# In Django settings.py
INSTALLED_APPS = ['markdownx', ...]

# In a model
from markdownx.models import MarkdownxField
class Post(models.Model):
    content = MarkdownxField()

Requires Django 4.2 or later and Python 3.10 or later; Pillow and Markdown are runtime dependencies.

Verify before relying

  • Whether the live preview feature works without additional JavaScript setup or if frontend build steps are required.
  • Performance characteristics when handling large markdown documents or frequent image uploads.
  • Extent of customization available for image storage paths and processing pipelines.

Package facts

License BSD (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies 3 — Django, Pillow, Markdown
Maintenance actively maintained — 83 days since the last release
Last repo commit
First released
Downloads 147,572/month — #11,058 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: django_markdownx-4.0.11-py2.py3-none-any.whl

Keywords: django, markdown, markdownx, django-markdownx, editor, image, upload, drag&drop, ajax

Development Status :: 5 - Production/StableEnvironment :: PluginsEnvironment :: Web EnvironmentFramework :: Django :: 4.2Framework :: Django :: 5.1Framework :: Django :: 5.2Framework :: Django :: 6.0Intended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: JavaScriptProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Internet :: WWW/HTTPTopic :: Internet :: WWW/HTTP :: Site ManagementTopic :: Multimedia :: GraphicsTopic :: Multimedia :: Graphics :: PresentationTopic :: Software Development :: Libraries :: Python ModulesTopic :: Text Editors :: Text ProcessingTopic :: Text Editors :: Word ProcessorsTopic :: Text Processing :: MarkupTopic :: Text Processing :: Markup :: HTML

Tags

django markdown editormarkdown widget djangolive markdown previewdrag drop image upload djangomarkdown image editordjango admin markdownmarkdown form field
django-pluginmarkdown-editorwysiwyg

More Python Modules packages