| 154 | Markdown |
| 155 | -------- |
| 156 | |
| 157 | When using the ``markdown`` markup language you can load `markdown extensions`_ by passing |
| 158 | them as template parameters: |
| 159 | |
| 160 | .. code-block:: html+django |
| 161 | |
| 162 | {{yourtext|markdown:"wikilink,footnotes"}} |
| 163 | |
| 164 | You can configure the extensions by defining :setting:`MARKDOWN_FILTER_SETTINGS` in your Django settings. |
| 165 | For example, when using the wikilink extension you could use the following options: |
| 166 | |
| 167 | .. code-block:: python |
| 168 | |
| 169 | MARKDOWN_FILTER_SETTINGS = { |
| 170 | 'wikilink': [ |
| 171 | ('base_url', '/help/'), |
| 172 | ('end_url', '/'), # append slash after all wiki links |
| 173 | ('html_class', 'wikilink') # css class for wiki links |
| 174 | ] |
| 175 | } |
| 176 | |
| 177 | .. _markdown extensions: http://www.freewisdom.org/projects/python-markdown/Extensions |
| 178 | |
| 179 | ReStructured Text |
| 180 | ----------------- |
| 181 | |
| 182 | When using the `restructuredtext` markup language you can override the restuctured text settings by defining |
| 183 | :setting:`RESTRUCTUREDTEXT_FILTER_SETTINGS` in your Django settings. See the `restructuredtext settings`_ |
| 184 | for details on what these settings are. |
| 185 | |
| 186 | .. _restructuredtext settings: http://docutils.sourceforge.net/docs/user/config.html#html4css1-writer |
| 187 | |