changeset 7740:7e252987e5a7

lib: use Python dot notation for Markdown extensions Gets rid of: data/env/lib/python2.7/site-packages/markdown/__init__.py:259: DeprecationWarning: Using short names for Markdown's builtin extensions is deprecated. Use the full path to the extension with Python's dot notation (eg: "markdown.extensions.codehilite" instead of "codehilite"). The current behavior will raise an error in version 2.7. See the Release Notes for Python-Markdown version 2.6 for more info. DeprecationWarning)
author Mads Kiilerich <mads@kiilerich.com>
date Fri, 07 Jun 2019 03:37:07 +0200
parents 42c4ffb45fe0
children 3330ffb6326a
files kallithea/lib/markup_renderer.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/lib/markup_renderer.py	Fri Jun 07 03:37:07 2019 +0200
+++ b/kallithea/lib/markup_renderer.py	Fri Jun 07 03:37:07 2019 +0200
@@ -196,8 +196,8 @@
                 source = cls._flavored_markdown(source)
             return markdown_mod.markdown(
                 source,
-                extensions=['codehilite', 'extra'],
-                extension_configs={'codehilite': {'css_class': 'code-highlight'}})
+                extensions=['markdown.extensions.codehilite', 'markdown.extensions.extra'],
+                extension_configs={'markdown.extensions.codehilite': {'css_class': 'code-highlight'}})
         except Exception:
             log.error(traceback.format_exc())
             if safe: