-
Notifications
You must be signed in to change notification settings - Fork 440
Description
It would be quite helpful to have an interface to add custom extras (not necessarily all extras) as needed.
For example, we use markdown2 with django, and we'd like to permit editors to insert certain types of buttons into their text. With static templates, we use the django template tags feature.
It would be great to be able to define a syntax for ourselves, such as [[button:text]]((button link))
that we could expand to some rather complicated bit of html.
A related use is internal links, where we'd like to do [[internal:text]]((link))
for an internal link that works with django's url system.
These are use cases that I don't think merit library distribution, but if there were a hook system so that we could declare a custom filter, this would be quite useful.
Our work-around is to post-process the entire string coming out of markdown2, which isn't hideous but could be better if markdown2 supported some sort of filters.