Skip to main content

A django app that parse markdown to html

Project description

This django app provides some features for handling markdown in yout django based website:

  • template_tags for parsing Markdown code to html and cleaning it
  • A form field for editing markdown code and preview the html output



This app use misaka, a binding for hoedown that use CFFI. You may need to install some package in order to build cffi

On fedora (adapt for your on system or the version of python you xant to use)

dnf install libffi-devel python3-devel
# on fedora, you may need to install this
dnf install redhat-rpm-config

The actual installation

Just install it with pip

pip install django-ml_markdown


Add the path to the configuration class in INSTALLED_APPS


you can also inherit this class for custom settings. See the documentation for details.

Use in templates

You can use one of this filters in your templates:

  • to_html: parse markdown code to html without cleaning it.
  • clean: clean html code with the white list provides as arguments or in the class used for configuration
  • to_cleaned_html: shortcut for| to_html | clean

Some over filter can be found in the documentation.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-ml_markdown, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size django_ml_markdown-0.1.0-py3.5.egg (11.1 kB) File type Egg Python version 3.5 Upload date Hashes View
Filename, size django_ml_markdown-0.1.0-py3-none-any.whl (7.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django-ml_markdown-0.1.0.tar.gz (4.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page