Use Kramdown TOC extension.