Markdown template filter for Django.
Project description
# django-markdown-filter
# Usage
```
{% 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',
]
```
# Usage
```
{% 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',
]
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-markdown-filter-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5428cc0de796a2999ec61433d5538aa799dba1a016730aeb1c82bf6d8b98f099 |
|
MD5 | 161253b193d1c63b1a753128286a9781 |
|
BLAKE2b-256 | 9c0302f540650d26ec83830d14cae05bd9506c39b2bd6dff51b0c63d5198760f |
Close
Hashes for django_markdown_filter-0.0.1-py3.6.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91250a5da3e9ed5d144a522c9b1e03757560987a4d7f8049d6269ab4dffeeab6 |
|
MD5 | e1eff7bc7f9ab6821736b9c40dd2d6c0 |
|
BLAKE2b-256 | 65ea7f5acf67cbc7a18988a77b65b3d34c65c1242f57a14c46063250435c8a81 |