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
- Host: GitHub
- URL: https://github.com/mrtc0/django-markdown-filter
- Owner: mrtc0
- License: mit
- Created: 2017-05-11T04:47:39.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-11-24T17:51:40.000Z (about 6 years ago)
- Last Synced: 2025-06-28T17:59:41.218Z (6 months ago)
- Language: Python
- Size: 7.81 KB
- Stars: 3
- Watchers: 2
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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',
]
```