From: Hendra <hen...@gm...> - 2013-06-22 13:27:18
|
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? P.S. I am very sorry if this ended up as a double post, I wasn't sure if the mail was sent correctly the first time round. -- Best Regards, and Thank you, Hendra |