From 47372051cf9724f1355b1c07c63c4beff9a5f626 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Thu, 31 Jul 2014 22:40:33 -0400 Subject: Update extensions for Extension.__init__ refactor Fixes #325. All extensions can now accept a dict of configs or **kwargs, not just a list of tuples. Third party extensions may want to follow suite. Extensions may only accept keyword arguments in the future. These changes still need to be documented. A couple things of note: The CodeHilite extension previously issued a DeprecationWarning if the old config key `force_linenos` was used. With thins change, a KeyError will now be raised. The `markdown.util.parseBoolValue` function gained a new argument: `preserve_none` (defaults to False), which when set to True, will pass None through unaltered (will not convert it to False). --- markdown/extensions/def_list.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'markdown/extensions/def_list.py') diff --git a/markdown/extensions/def_list.py b/markdown/extensions/def_list.py index df639df..3511651 100644 --- a/markdown/extensions/def_list.py +++ b/markdown/extensions/def_list.py @@ -113,6 +113,6 @@ class DefListExtension(Extension): '>ulist') -def makeExtension(configs={}): - return DefListExtension(configs=configs) +def makeExtension(*args, **kwargs): + return DefListExtension(*args, **kwargs) -- cgit v1.2.3