From f08ce1e82ee9d8c6a871b95d823c6d957f4d2428 Mon Sep 17 00:00:00 2001 From: Christian Duvholt Date: Sun, 11 Sep 2016 15:23:47 +0200 Subject: [PATCH] Fix memory leak. Fixes #564 --- wiki/core/markdown/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wiki/core/markdown/__init__.py b/wiki/core/markdown/__init__.py index 8b87429d..e40b4d6a 100644 --- a/wiki/core/markdown/__init__.py +++ b/wiki/core/markdown/__init__.py @@ -22,7 +22,7 @@ class ArticleMarkdown(markdown.Markdown): def get_markdown_extensions(self): kwargs = settings.MARKDOWN_KWARGS - extensions = kwargs.get('extensions', []) + extensions = list(kwargs.get('extensions', [])) extensions += self.core_extensions() extensions += plugin_registry.get_markdown_extensions() return extensions -- 2.45.2