);
                    }         
                    
                    var escapedText    = text.toLowerCase().replace(/[^\w]+/g, "-");
                    var toc = {
                        text : text,
                        level : level,
                        slug  : escapedText
                    };
                    
                    console.log("text =>", text);

                    var isChinese = /^[\u4e00-\u9fa5]+$/.test(text);
                    var id = (isChinese) ? escape(text).