2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

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);
});
});
}