| 150 | | A collection of template filters that implement these common markup languages: |
|---|
| 151 | | |
|---|
| 152 | | * `Textile`_ |
|---|
| 153 | | * `Markdown`_ |
|---|
| 154 | | * `ReST (ReStructured Text)`_ |
|---|
| 155 | | |
|---|
| 156 | | For documentation, read the source code in django/contrib/markup/templatetags/markup.py. |
|---|
| | 157 | A collection of template filters that implement common markup languages: |
|---|
| | 158 | |
|---|
| | 159 | * ``textile`` -- implements `Textile`_ |
|---|
| | 160 | * ``markdown`` -- implements `Markdown`_ |
|---|
| | 161 | * ``restructuredtext`` -- implements `ReST (ReStructured Text)`_ |
|---|
| | 162 | |
|---|
| | 163 | In each case, the filter expects formatted markup as a string and returns a |
|---|
| | 164 | string representing the marked-up text. For example, the ``textile`` filter |
|---|
| | 165 | converts text that is marked-up in Textile format to HTML. |
|---|
| | 166 | |
|---|
| | 167 | To activate these filters, add ``'django.contrib.markup'`` to your |
|---|
| | 168 | ``INSTALLED_APPS`` setting. Once you've done that, use ``{% load markup %}`` in |
|---|
| | 169 | a template, and you'll have access to these filters. For more documentation, |
|---|
| | 170 | read the source code in django/contrib/markup/templatetags/markup.py. |
|---|