Skip to content

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

Notifications You must be signed in to change notification settings

noxan/django-markdown-it

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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