Skip to main content

Markdown template filter for Django following CommonMark specs (markdown-it-py).

Project description

django-markdownit

Markdown template filter for Django following CommonMark specs.

Installation

  1. Install the package:

    poetry add django-markdownit
    

    or using pip:

    pip install django-markdownit
    
  2. Add markdownit to your INSTALLED_APPS:

    INSTALLED_APPS = [
        # ...
        'markdownit',
    ]
    

Usage

  1. Load the template tag library in your template:

    {% load markdownit %}
    
  2. Use the markdownit filter on a string:

    {{ my_string|markdownit }}
    

Credits

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

django_markdownit-0.5.0.tar.gz (1.9 kB view hashes)

Uploaded Source

Built Distribution

django_markdownit-0.5.0-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page