Modified the markdown generated for the table of contents to better support tables, and separation between sections