| 107 | | === {{{expand_macro}}} details === |
| 108 | | {{{expand_macro}}} should return either a simple Python string which will be interpreted as HTML, or preferably a Markup object (use {{{from trac.util.html import Markup}}}). {{{Markup(string)}}} just annotates the string so the renderer will render the HTML string as-is with no escaping. You will also need to import Formatter using {{{from trac.wiki import Formatter}}}. |
| | 107 | === {{{ |
| | 108 | expand_macro |
| | 109 | }}} details === |
| | 110 | {{{ |
| | 111 | expand_macro |
| | 112 | }}} should return either a simple Python string which will be interpreted as HTML, or preferably a Markup object (use {{{ |
| | 113 | from trac.util.html import Markup |
| | 114 | }}}). {{{ |
| | 115 | Markup(string) |
| | 116 | }}} just annotates the string so the renderer will render the HTML string as-is with no escaping. You will also need to import Formatter using {{{ |
| | 117 | from trac.wiki import Formatter |
| | 118 | }}}. |