An open API service indexing awesome lists of open source software.

https://github.com/mrtc0/django-markdown-filter

Markdown template filter for Django
https://github.com/mrtc0/django-markdown-filter

Last synced: 6 months ago
JSON representation

Markdown template filter for Django

Awesome Lists containing this project

README

          

# django-markdown-filter

# Usage

```
{% load markdown_filter %}
{{ model|markdown_filter|safe }}
```

See example.

# Install

```
pip install django-markdown-filter
```

To enable dajngo-markdown-filter in your project you need to add it to INSTALLED_APPS in your projects settings.py file:
```
INSTALLED_APPS = [
...
'markdown_filter',
...
]
```

Add whitelist HTML tags to your projects settings.py file:
```
MARKDOWNIFY_WHITELIST_TAGS = [
'a',
'p',
'code',
'h1',
]

```