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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-markdown-filter-0.0.1.tar.gz.
File metadata
- Download URL: django-markdown-filter-0.0.1.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5428cc0de796a2999ec61433d5538aa799dba1a016730aeb1c82bf6d8b98f099
|
|
| MD5 |
161253b193d1c63b1a753128286a9781
|
|
| BLAKE2b-256 |
9c0302f540650d26ec83830d14cae05bd9506c39b2bd6dff51b0c63d5198760f
|
File details
Details for the file django_markdown_filter-0.0.1-py3.6.egg.
File metadata
- Download URL: django_markdown_filter-0.0.1-py3.6.egg
- Upload date:
- Size: 5.2 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91250a5da3e9ed5d144a522c9b1e03757560987a4d7f8049d6269ab4dffeeab6
|
|
| MD5 |
e1eff7bc7f9ab6821736b9c40dd2d6c0
|
|
| BLAKE2b-256 |
65ea7f5acf67cbc7a18988a77b65b3d34c65c1242f57a14c46063250435c8a81
|