Skip to main content

('Django-Jinja (Jinja2) extension and filter for parse markdown text markup.',)

Project description

django-jinja-markdown
==============

django-jinja (Jinja2) extension and filter for parse markdown text markup.


Requirements
============

Python-Markdown - http://packages.python.org/Markdown/


Installation
=============

Install django-jinja-markdown:

pip install django-jinja-markdown

Add 'django_jinja_markdown' to INSTALLED_APPS.

To be able to use `markdown` extension you should add it to TEMPLATES extensions list:

TEMPLATES = [
{
'BACKEND': 'django_jinja.backend.Jinja2',
'OPTIONS': {
'extensions': [
'django_jinja_markdown.extensions.MarkdownExtension',
],
}
},
]

Basic Use
=========

Example of using filter in template:

{{ content|markdown() }}

Or with additional settings:

{{ content|markdown(extensions=['nl2br',]) }}

Example of using extension:

{% markdown %}
Text which will get converted with Markdown.
{% endmarkdown %}

License
=======

This software is licensed under The MIT License (MIT). For more information, read the file LICENSE.

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-jinja-markdown-1.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

django_jinja_markdown-1.0-py2.py3-none-any.whl (5.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-jinja-markdown-1.0.tar.gz.

File metadata

File hashes

Hashes for django-jinja-markdown-1.0.tar.gz
Algorithm Hash digest
SHA256 b6ad614bc761b01f073833d4367547990e9c9898152e9b4b4b43b0ef7b9b95bc
MD5 c8e844fa6e4429cc6a8c9f434d07e55a
BLAKE2b-256 52db2011562ddb887eca4ad6326b55bf353ad722b8f420223dce1aca2c45d727

See more details on using hashes here.

File details

Details for the file django_jinja_markdown-1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_jinja_markdown-1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 31a49dcfdbff597caba5de093b5ec7f7320170e08fc0b1ef638c99caedd6c5f3
MD5 999f6b62532136b10d5facb2e3d179b0
BLAKE2b-256 441eea6cfa0f552098b7d6c2c9460e7907c5a1e5ff8c57049df1e667b1450d29

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