|
From: David W. <wo...@cs...> - 2008-02-22 20:19:58
|
On 21-Feb-08, at 3:17 PM, Yuri Takhteyev wrote: > Can't we check for type of parameters to see whether they are names or > loaded modules? Yea, I think that makes the most sense. I was thinking about the common use-cases last night, and I realized that 98% of people probably just want to pass in the names -- so no need to make that more complex. In this patch, the extensions argument to Markdown can contain both strings (["abbr"]) or objects (or, I suppose, both). Strings are passed, along with their config from extension_configs, to load_extension, and then they are loaded as normal. I don't think I have made any changes to the API, and the few tests I've run on existing extensions seem to suggest that everything does the Right Thing. Comments? |