chor\"></a>" +
                           "<span class=\"header-link\"></span>" + text + "</h" + level + ">";*/
                    
                    var anchor = "<a name=\"" + text + "\" class=\"anchor\"></a>";
                    
                    headingHTML += anchor;
                    
                    headingHTML += "<span class=\"header-link\"></span>";
                    
                    headingHTML += (hasLinkReg) ? linkText : text;
                    
                    headingH