diff options
| author | Claude Paroz <claude@2xlibre.net> | 2012-04-14 12:35:31 +0000 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2012-04-14 12:35:31 +0000 |
| commit | 749243941c0761a9dbf7afd5ef0fe1769a6647cd (patch) | |
| tree | 4aa18e5d49367e2a51d4d4c4b17c4815c7fa8c0d /docs/ref | |
| parent | a9187e54472cd65dda0fac77cacd586c00fd7ea9 (diff) | |
Fixed #18041 -- Removed support for Markdown versions < 2.1, following the 1.5 deprecation timeline. Thanks Ramiro Morales for the review.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17909 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/contrib/markup.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/ref/contrib/markup.txt b/docs/ref/contrib/markup.txt index 3abc27bf5d..4ee2f94128 100644 --- a/docs/ref/contrib/markup.txt +++ b/docs/ref/contrib/markup.txt @@ -9,7 +9,7 @@ Django provides template filters that implement the following markup languages: * ``textile`` -- implements `Textile`_ -- requires `PyTextile`_ -* ``markdown`` -- implements `Markdown`_ -- requires `Python-markdown`_ +* ``markdown`` -- implements `Markdown`_ -- requires `Python-markdown`_ (>=2.1) * ``restructuredtext`` -- implements `reST (reStructured Text)`_ -- requires `doc-utils`_ @@ -53,13 +53,13 @@ Markdown The Python Markdown library supports options named "safe_mode" and "enable_attributes". Both relate to the security of the output. To enable both -options in tandem, the markdown filter supports the "safe" argument. +options in tandem, the markdown filter supports the "safe" argument:: {{ markdown_content_var|markdown:"safe" }} .. warning:: Versions of the Python-Markdown library prior to 2.1 do not support the - optional disabling of attributes and by default they will be included in - any output from the markdown filter - a warning is issued if this is the - case. + optional disabling of attributes. This is a security flaw. Therefore, + ``django.contrib.markup`` has dropped support for versions of + Python-Markdown < 2.1 in Django 1.5. |
