Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 953 Bytes

README.md

File metadata and controls

45 lines (31 loc) · 953 Bytes

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