diff roundup/cgi/templating.py @ 6100:d4ce26b14cf5

backward compatibility with older Markdown modules that pass globals arg
author Christof Meerwald <cmeerw@cmeerw.org>
date Mon, 24 Feb 2020 22:52:56 +0000
parents 55c56ceacb8e
children 0a82437a2930
line wrap: on
line diff
--- a/roundup/cgi/templating.py	Mon Feb 24 22:20:19 2020 +0000
+++ b/roundup/cgi/templating.py	Mon Feb 24 22:52:56 2020 +0000
@@ -78,7 +78,7 @@
 
         # make sure any HTML tags get escaped
         class EscapeHtml(MarkdownExtension):
-            def extendMarkdown(self, md):
+            def extendMarkdown(self, md, md_globals=None):
                 md.preprocessors.deregister('html_block')
                 md.inlinePatterns.deregister('html')
 

Roundup Issue Tracker: http://roundup-tracker.org/