3 class Text_Wiki_Render_Plain_Toc
extends Text_Wiki_Render
{
9 * Renders a token into text matching the requested format.
13 * @param array $options The "options" portion of the token (second
16 * @return string The text rendered from the token options.
20 function token($options)
25 if ($type == 'item_start') {
27 // build some indenting spaces for the text
28 $indent = ($level - 2) * 4;
29 $pad = str_pad('', $indent);
33 if ($type == 'item_end') {