Mercurial > kallithea
changeset 6935:ac7a406fd7f4
markdown: specify extensions directly - don't use old positional parameters
The only supported markdown version always used the compatibility mode. Move
forward!
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Mon, 16 Oct 2017 03:08:17 +0200 |
parents | 52b6083b94e6 |
children | b16dac5c97e6 |
files | kallithea/lib/markup_renderer.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/lib/markup_renderer.py Mon Oct 16 03:06:20 2017 +0200 +++ b/kallithea/lib/markup_renderer.py Mon Oct 16 03:08:17 2017 +0200 @@ -143,7 +143,7 @@ import markdown as __markdown if flavored: source = cls._flavored_markdown(source) - return __markdown.markdown(source, ['codehilite', 'extra']) + return __markdown.markdown(source, extensions=['codehilite', 'extra']) except ImportError: log.warning('Install markdown to use this function') return cls.plain(source)