mirror of
https://github.com/discourse/discourse.git
synced 2025-04-02 01:55:59 +08:00
DEV: Fix hljs.highlightBlock
deprecation (#14908)
This commit is contained in:
parent
6645243a26
commit
7ea2bf52cc
@ -41,7 +41,7 @@ export default function highlightSyntax(elem, siteSettings, session) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
e.classList.remove("lang-auto");
|
e.classList.remove("lang-auto");
|
||||||
hljs.highlightBlock(e);
|
hljs.highlightElement(e);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user