TypePad API Guide To generate HTML with code highlighting and a table of contents, use Python Markdown with the codehilite and toc extensions: markdown -x codehilite -x toc guide.markdown > guide.html