mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 19:37:55 +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");
|
||||
hljs.highlightBlock(e);
|
||||
hljs.highlightElement(e);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user