DEV: Fix hljs.highlightBlock deprecation (#14908)

This commit is contained in:
Jarek Radosz 2021-11-12 20:20:47 +01:00 committed by GitHub
parent 6645243a26
commit 7ea2bf52cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,7 @@ export default function highlightSyntax(elem, siteSettings, session) {
}
e.classList.remove("lang-auto");
hljs.highlightBlock(e);
hljs.highlightElement(e);
});
});
}