The mini table of contents that you see in the PDF is created by adding \minitoc to the markdown file after the header for the chapter.