Skip to main content

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

Project description

django-markdown-it

Markdown template filter for Django following CommonMark specs.

Installation

  1. Install the package:

    poetry add django-markdown-it
    

    or using pip:

    pip install django-markdown-it
    
  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_markdown_it-0.4.1.tar.gz (2.0 kB view hashes)

Uploaded Source

Built Distribution

django_markdown_it-0.4.1-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