|
From: Marco P. <mar...@gm...> - 2011-06-29 16:00:16
|
On Wed, Jun 29, 2011 at 5:28 PM, Waylan Limberg <wa...@gm...> wrote:
> As a side note. I've found that users tend to get confused by (and
> therefore avoid using) extension configs. It is easy to add another
> extension. Not so easy to change config settings for one though. In
> other words, the typical user would rather do:
>
> markdown.markdown(text, extensions=['attr_list', 'headerid'])
>
> rather than:
>
> markdown.markdown(text, extensions=['attr_list(forceid=True)'])
>
>
What about
markdown.markdown(text, extensions=[('attr_list', {'forceid': True}), ...])
or even:
markdown.markdown(text, extensions={'attr_list': {'forceid': True}, ...})
?
Even if I'd prefer the use of the OO interface, through the Markdown class,
in such cases.
--
Marco Pantaleoni
|