Lexer->addSpecialPattern('{{INLINETOC}}', $mode, 'plugin_inlinetoc'); } /** * Handle the match */ function handle($match, $state, $pos, &$handler) { return ''; } /** * Add placeholder to cached page (will be replaced by action component) */ function render($mode, &$renderer, $data) { if ($mode == 'metadata') { $renderer->meta['movetoc'] = true; return true; } $renderer->doc .= ''; } }