|
From: Hendra <hen...@gm...> - 2013-06-22 13:03:40
|
Hi,
I am trying to write a simple extension for the python markdown API, but I
am having some problem with setting the config. From the doc:
import markdown
import myextension
configs = {...}
myext = myextension.MyExtension(configs=configs)
md = markdown.Markdown(extensions=[myext])
It seems like I would have to pass the config in a dict, but when I try to
initialize the extension with the name of the extension, it receives the
config as a list (I am guessing from config.items() ).
Looking around the source of the extensions here:
https://github.com/waylan/Python-Markdown/tree/master/markdown/extensions,
it seems like in most of them, configs is a list. So, which is the right
one?
--
Best Regards, and Thank you,
Hendra
|