A small tool generates html exactly like github with TOC support.