              try {
                    var obj = hljs.highlight(lang, code, true, false);
                    return obj.value;
                } catch (e) {
                    return code;
                }
            }
            return hljs.highlightAuto(code).value;
        }
    });
}

Renderer.prototype.heading = function () {
    var R = this;
    return function (text, level) { 
        if (R.mode & RendererMode.rmContent) {
            if (R.mode & RendererMode.rmArchor) {
                ++R.h