mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
lang-auto not being treated correctly after update
This commit is contained in:
@@ -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));
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user