mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 11:48:26 -06:00
lang-auto not being treated correctly after update
This commit is contained in:
parent
7fb8fda7bf
commit
0f29269de8
@ -9,6 +9,7 @@ export default function highlightSyntax($elem) {
|
||||
if (!path) { return; }
|
||||
|
||||
$(selector, $elem).each(function(i, e) {
|
||||
$(e).removeClass('lang-auto');
|
||||
loadScript(path).then(() => hljs.highlightBlock(e));
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user