diff --git a/code/websites/pokedex.online/src/directives/highlight.js b/code/websites/pokedex.online/src/directives/highlight.js index 4387978..37d2b90 100644 --- a/code/websites/pokedex.online/src/directives/highlight.js +++ b/code/websites/pokedex.online/src/directives/highlight.js @@ -22,6 +22,8 @@ function applyHighlight(el, theme = 'github-dark') { } try { + // Configure highlight.js to handle HTML safely + hljs.configure({ useBR: false }); hljs.highlightElement(el); // Remove any existing theme classes el.className = el.className.replace(/hljs-theme-\w+/, '');