aboutsummaryrefslogtreecommitdiffstats
path: root/markdown/__init__.py
diff options
context:
space:
mode:
authorWaylan Limberg <waylan.limberg@icloud.com>2014-08-29 14:11:57 -0400
committerWaylan Limberg <waylan.limberg@icloud.com>2014-08-29 14:11:57 -0400
commit9d388a8ee26934c7b4685374ed7afbf5219d1995 (patch)
tree0868a64d464fdb16d708fe862c0608ad8e946200 /markdown/__init__.py
parentc27cbd154050c1181eac195a4b0bb19a6bbaf048 (diff)
downloadmarkdown-9d388a8ee26934c7b4685374ed7afbf5219d1995.tar.gz
markdown-9d388a8ee26934c7b4685374ed7afbf5219d1995.tar.bz2
markdown-9d388a8ee26934c7b4685374ed7afbf5219d1995.zip
More updates to test configs.
The last few extensions were updated to accept dicts/**kwargs as configs and more tests were updated. Also updated extra to actually accept configs. Note that extra requires an extra level of dicts. First you need to indicate tha the settings are for extra, then, which extension extra wraps. I'm not crazy abount this, bit not sur ehow else to do it without making all the configs a global attribute on the Markdown class to that any extention can access any other extensions config settings. I don't think we wnat to do that. Also updated extra to use dot notation for the sub-extensions.
Diffstat (limited to 'markdown/__init__.py')
-rw-r--r--markdown/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/markdown/__init__.py b/markdown/__init__.py
index 28f30c8..0fdcd97 100644
--- a/markdown/__init__.py
+++ b/markdown/__init__.py
@@ -218,11 +218,11 @@ class Markdown(object):
if class_name:
# Load given class name from module.
- return getattr(module, class_name)(configs.items())
+ return getattr(module, class_name)(configs=configs)
else:
# Expect makeExtension() function to return a class.
try:
- return module.makeExtension(configs.items())
+ return module.makeExtension(configs=configs)
except AttributeError as e:
message = e.args[0]
message = "Failed to initiate extension " \