2 if (match($0, /<h[0-9] id="([^"]*)">([0-9.]* *)([^<]*)<\/h[0-9]>/, arr)) {
6 toc = toc "\n" "<li>" num "<a href=\"#" id "\">" txt "</a></li>"
7 body = body "\n" "<a id=\"" id "\"></a>"
13 print "<h2>Table of Contents</h2>";
14 print "<ul style=\"list-style:none;\">" toc "</ul>";