'.$match[1].'
')) !== FALSE) { // Insert the page TOC just before the first
, which every // Markdown page should (will?) have. $text = substr_replace($text, $toc, $offset, 0); } } return $text; } } // End Kodoc_Markdown