Fix #761: fix syntax highlighting for asciidoc

This commit is contained in:
Samy Pessé
2015-09-05 17:28:01 +02:00
parent 377e470b15
commit 871f574ff7
+5
View File
@@ -229,7 +229,12 @@ function normalizeHtml(src, options) {
($(this).attr("class") || "").split(" ")
)
.map(function(cl) {
// Markdown
if (cl.search("lang-") === 0) return cl.slice("lang-".length);
// Asciidoc
if (cl.search("language-") === 0) return cl.slice("language-".length);
return null;
})
.compact()