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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file django_markdownit-0.5.0.tar.gz.

File metadata

  • Download URL: django_markdownit-0.5.0.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.5 Darwin/23.6.0

File hashes

Hashes for django_markdownit-0.5.0.tar.gz
Algorithm Hash digest
SHA256 df87c61727bac43d24733041624a35b2a10bdf6db29a6e00f941cfbde35b0746
MD5 cc2ac11cadcb28c30413df1fb99170e5
BLAKE2b-256 5963090cc1e3aab2821bf9b6c15629289424df834e97a587be7bdb9ee4cd3b99

See more details on using hashes here.

File details

Details for the file django_markdownit-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_markdownit-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d78f1e4d4c680554902055fb8f36fd81709ec704139a3f936425e10b905b2678
MD5 623af41e378e65b6a122e741ee2b22c0
BLAKE2b-256 183eaadab4b3b5573dcd9bc911f4e67c344805b5bc0efdde1261de6df93e6b7e

See more details on using hashes here.

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