generate toc for wiki page?

is it possible to generate a TOC for a wiki page using your plugin a la mediawiki?