| 47 | |
| 48 | === Inline macros |
| 49 | |
| 50 | Many macros expand to content that can not appear inline in a line of text, so macros are usually |
| 51 | replaced by a [[macro(...)]] indicator when used in ''outline'' or ''one line'' formatters. |
| 52 | |
| 53 | Since 0.13, macros implementing the optional `is_inline` method can appear in such inline content. They should of course produce inline XHTML in this case. |
| 54 | |
| 55 | Example: |
| 56 | The ''Span'' macro implements `is_inline`, the ''Div'' macro does not: |
| 57 | {{{ |
| 58 | ==== This [[Span(title, style=background:#ff7)]] contains an inline macro |
| 59 | ==== This [[Div(title, style=background:#ff7)]] contains a non-inline macro |
| 60 | }}} |
| 61 | ==== This [[Span(title, style=background:#ff7)]] contains an inline macro |
| 62 | ==== This [[Div(title, style=background:#ff7)]] contains a non-inline macro |