On Tuesday, August 8, 2017 at 11:14:25 AM UTC-7, Peter Suter wrote:
> A slightly simpler version:
> from trac.wiki.macros import WikiMacroBase
> from trac.wiki.formatter import format_to_html
> class MyLinkMacro(WikiMacroBase):
> def expand_macro(self, formatter, name, text, args):
> the_link =
> + text + '¶m4=value4 ' + text + ']'
> return format_to_html(self.env, formatter.context,
Seems like it would be a good idea to change the example code to use
format_to_html, as in your example:
, unless the example is intended to be illustrative of something.
Using format_to_html is effectively the same after two levels of
What do you think?
You received this message because you are subscribed to the Google Groups "Trac
To unsubscribe from this group and stop receiving emails from it, send an email
To post to this group, send email to firstname.lastname@example.org.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.