Writing A Wiki With Menu (Anchor Links)

How do I include a menu (anchor links to the titles) of a wiki? I tried to search the web and thought I found the solution but then I wrote my wiki and it did not work. I also read the markup documentation but I think it does not include how to do this even though I have seen many wiki articles that include it.

You can edit a wiki of those and see the markdown code. Basically you need to have h1 and h2 titles in the wiki body, they will automatically be included in the TOC.

Oh ok. I did not know I could edit a wiki made by other person. I’ll see the code. Thank you!