remove deprecated jQuery workaround

This commit is contained in:
Joe 2021-12-30 04:54:29 +08:00 committed by Robin Ward
parent 05eaedc810
commit c5c216563e
1 changed files with 0 additions and 14 deletions

View File

@ -1,4 +1,3 @@
import deprecated from "discourse-common/lib/deprecated";
import loadScript from "discourse/lib/load-script";
/*global hljs:true */
@ -14,19 +13,6 @@ export default function highlightSyntax(elem, siteSettings, session) {
: "pre code[class]";
const path = session.highlightJsPath;
// eslint-disable-next-line no-undef
if (elem instanceof jQuery) {
deprecated(
"highlightSyntax now takes a DOM node instead of a jQuery object.",
{
since: "2.6.0",
dropFrom: "2.7.0",
}
);
elem = elem[0];
}
if (!path) {
return;
}