#10146: Support for contrib/markdown extension_configs in settings.py
----------------------------------------------------------+-----------------
Reporter: bdejong | Owner:
nobody
Status: new | Milestone:
post-1.0
Component: Contrib apps | Version: SVN
Keywords: markdown config extensions extension_configs | Stage:
Unreviewed
Has_patch: 1 |
----------------------------------------------------------+-----------------
Markdown has support for "extension configs". For example: the "wikilink"
extension normally turns {{{[[link]]}}} into {{{<a href="/link/"
class="wikilink">link</a>}}}, but if you want to change the link class or
the prefix of the URL you need to do this through configuration of the
extension.
This patch allows you to add the configuration in the settings.py file as
such:
{{{
MARKDOWN_EXTENSION_CONFIGS = {
'wikilink': [
('base_url', '/help/'),
('end_url', ''),
('html_class', 'wikilink')
]
}
}}}
It's a very small patch but helps a lot when using markdown extensions.
Almost all extensions have some form of configuration available.
--
Ticket URL: <http://code.djangoproject.com/ticket/10146>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---