4 class Text_Wiki_Render_Latex_List
extends Text_Wiki_Render
{
7 * Renders a token into text matching the requested format.
9 * This rendering method is syntactically and semantically compliant
10 * with XHTML 1.1 in that sub-lists are part of the previous list item.
14 * @param array $options The "options" portion of the token (second
17 * @return string The text rendered from the token options.
21 function token($options)
23 // make nice variables (type, level, count)
28 case 'bullet_list_start':
29 return "\\begin{itemize}\n";
31 case 'bullet_list_end':
32 return "\\end{itemize}\n";
34 case 'number_list_start':
35 return "\\begin{enumerate}\n";
37 case 'number_list_end':
38 return "\\end{enumerate}\n";
40 case 'bullet_item_start':
41 case 'number_item_start':
44 case 'bullet_item_end':
45 case 'number_item_end':
49 // ignore item endings and all other types.
50 // item endings are taken care of by the other types
51 // depending on their place in the list.