Merge pull request #104 from GitbookIO/fix/auto_highlighting

Disable automatic highlighting
This commit is contained in:
Samy Pessé
2014-04-17 09:24:56 +02:00
+5 -3
View File
@@ -23,11 +23,13 @@ function render(section, _options) {
// Synchronous highlighting with highlight.js
highlight: function (code, lang) {
if(!lang) return code;
try {
return hljs.highlight(lang, code).value;
} catch(e) {
return hljs.highlightAuto(code).value;
}
} catch(e) { }
return code;
}
});