This post introduces a BlogEngine 1.3 extension that automatically generates a Table Of Contents based on h1-h6 heading tags that are found in the body of posts and pages. The TOC is going to be rendered as either a <ul> or <ol> html list of anchors (links) to the corresponding heading tags. If the post or page is being saved for the first time then the TOC will be placed where the tag [ t o c a u t o g e n ] is located. Updating the post will look for <div id="tocautogen"></div> html construct and it replace it with the updated version of the TOC. The html that renders the TOC uses the xoxo class id pattern that specifies the Microformats XOXO Outline.