From aa37b02dd70a9ba2433b7f73de06814443dfc0e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Fredrik=20Ki=C3=A6r?= <31612826+anders-kiaer@users.noreply.github.com> Date: Sat, 21 Sep 2019 16:55:48 +0200 Subject: [PATCH] Remove depreciation warning for Markdown (#92) --- webviz_config/containers/_markdown.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/webviz_config/containers/_markdown.py b/webviz_config/containers/_markdown.py index 865e59ff..e690aa2b 100644 --- a/webviz_config/containers/_markdown.py +++ b/webviz_config/containers/_markdown.py @@ -17,8 +17,11 @@ def __init__(self, base_path): super(_WebvizMarkdownExtension, self).__init__() def extendMarkdown(self, md): - md.inlinePatterns['image_link'] = \ - _MarkdownImageProcessor(IMAGE_LINK_RE, md, self.base_path) + md.inlinePatterns.register( + item=_MarkdownImageProcessor(IMAGE_LINK_RE, md, self.base_path), + name='image_link', + priority=50 + ) class _MarkdownImageProcessor(ImageInlineProcessor):