Formatter argument for macros
|Reported by:||Owned by:||Christian Boos|
We've ran into a problem, where inside a macro provider we must know what kind of formatter has been used. More specifically, this occured when using the WikiTemplate plugin, it has to return unformatted wiki text for the OutlineFormatter, or formatted text for a Formatter.
In Trac's source, I found TODO comments, stating that you intend to pass the formatter to the macro renderer. One could easily pass an extra argument to the WikiProcessor constructor, but it seems like from there to the macro renderer, you'd have to break the API by adding an extra argument (or alternatively, adding an extra property to one of the objects passed into the function, like req).
We really don't want to break compatibility with your code, so what's your plan on this situation? Would there be any interest in an extra pair of hands working on this?
Thanks in advance,
- Jorge Pereira
Change History (6)
follow-up: 2 comment:1 by , 13 years ago
|Summary:||Formatter option for macros → Formatter argument for macros|