Creating a table of contents with internal links in IPython Notebooks and Markdown documents