# HG changeset patch # User Mads Kiilerich # Date 1559871427 -7200 # Node ID 7e252987e5a7777d64f7cc56e527a0902508612a # Parent 42c4ffb45fe0b8cd33d8eb579d532c283fa96806 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) diff -r 42c4ffb45fe0 -r 7e252987e5a7 kallithea/lib/markup_renderer.py --- 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: