From 24e415b969fd2c0d714f64413c2a62353cb979ca Mon Sep 17 00:00:00 2001 From: Raffaele Salmaso Date: Thu, 22 Feb 2018 20:33:27 +0100 Subject: [PATCH] Use the full path to the markdown extension with Python's dot notation. Using short names for Markdown's builtin extensions is deprecated. --- docs/release_notes.rst | 3 ++- src/wiki/conf/settings.py | 18 +++++++++--------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/docs/release_notes.rst b/docs/release_notes.rst index ca5b4a20..703eaaaa 100644 --- a/docs/release_notes.rst +++ b/docs/release_notes.rst @@ -23,7 +23,8 @@ Added Changed ~~~~~~~ - * ... + * Use full path names for ``MARKDOWN_KWARGS['extensions']`` as short names + support wil be removed in ``Markdown 2.7`` :url-issue:`823` Fixed ~~~~~ diff --git a/src/wiki/conf/settings.py b/src/wiki/conf/settings.py index 7a40a6a1..095a53df 100644 --- a/src/wiki/conf/settings.py +++ b/src/wiki/conf/settings.py @@ -35,15 +35,15 @@ MARKDOWN_SANITIZE_HTML = getattr( #: WIKI_MARKDOWN_KWARGS = {'extension_configs': {'toc': _('Contents of this article')}} MARKDOWN_KWARGS = { 'extensions': [ - 'footnotes', - 'attr_list', - 'smart_strong', - 'footnotes', - 'attr_list', - 'def_list', - 'tables', - 'abbr', - 'sane_lists', + 'markdown.extensions.footnotes', + 'markdown.extensions.attr_list', + 'markdown.extensions.smart_strong', + 'markdown.extensions.footnotes', + 'markdown.extensions.attr_list', + 'markdown.extensions.def_list', + 'markdown.extensions.tables', + 'markdown.extensions.abbr', + 'markdown.extensions.sane_lists', ], 'extension_configs': { 'toc': { -- 2.45.2