From d3f43422735535b24c831b1d97a731e656062afb Mon Sep 17 00:00:00 2001 From: Benjamin Bach Date: Sun, 5 Jan 2020 20:44:12 +0100 Subject: [PATCH] Fix one of the many markdown DeprecationWarnings --- src/wiki/core/markdown/mdx/previewlinks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wiki/core/markdown/mdx/previewlinks.py b/src/wiki/core/markdown/mdx/previewlinks.py index 31ca8285..f1ec92d2 100644 --- a/src/wiki/core/markdown/mdx/previewlinks.py +++ b/src/wiki/core/markdown/mdx/previewlinks.py @@ -13,7 +13,7 @@ class PreviewLinksExtension(markdown.Extension): class PreviewLinksTree(Treeprocessor): def run(self, root): - if self.markdown.preview: + if self.md.preview: for a in root.findall('.//a'): # Do not set target for links like href='#markdown' if not a.get('href').startswith('#'): -- 2.45.2