Put this in a wiki page:
then edit using the WYSIWYG editor. The first thing to notice is that the output of the TOC macro is not formatted using lists. It's just plain text. Moreover, the output is editable and if you save the page you end up with the TOC macro output (as plain text) in the page source.