lang-auto not being treated correctly after update

This commit is contained in:
Sam Saffron 2016-03-10 16:44:24 +11:00
parent 7fb8fda7bf
commit 0f29269de8
1 changed files with 1 additions and 0 deletions

View File

@ -9,6 +9,7 @@ export default function highlightSyntax($elem) {
if (!path) { return; }
$(selector, $elem).each(function(i, e) {
$(e).removeClass('lang-auto');
loadScript(path).then(() => hljs.highlightBlock(e));
});
}