diff --git a/app/assets/javascripts/discourse/app/lib/highlight-syntax.js b/app/assets/javascripts/discourse/app/lib/highlight-syntax.js index 62e2a05f253..74bf28f42e6 100644 --- a/app/assets/javascripts/discourse/app/lib/highlight-syntax.js +++ b/app/assets/javascripts/discourse/app/lib/highlight-syntax.js @@ -41,7 +41,7 @@ export default function highlightSyntax(elem, siteSettings, session) { } e.classList.remove("lang-auto"); - hljs.highlightBlock(e); + hljs.highlightElement(e); }); }); }