Remove extra newlines from preformatted blocks
Implement basic TOC generation
Style the table of contents