Skip to content

A platform for community discussion. Free, open, simple.

remove deprecated jQuery workaround

Joec5c216563e49
diff --git a/app/assets/javascripts/discourse/app/lib/highlight-syntax.js b/app/assets/javascripts/discourse/app/lib/highlight-syntax.js
index 74bf28f42e6..80cc830f443 100644
--- a/app/assets/javascripts/discourse/app/lib/highlight-syntax.js
+++ b/app/assets/javascripts/discourse/app/lib/highlight-syntax.js
@@ -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;
}