From 1ae08f49c53ebc76de48294eafe34fd4845cb019 Mon Sep 17 00:00:00 2001 From: LenAnderson Date: Wed, 8 May 2024 11:03:05 -0400 Subject: [PATCH] don't replace codeblock textContent with innerText in hljs --- public/script.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/public/script.js b/public/script.js index 2279889d9..abcafe4ea 100644 --- a/public/script.js +++ b/public/script.js @@ -423,8 +423,6 @@ const characterContextMenu = new CharacterContextMenu(characterGroupOverlay); eventSource.on(event_types.CHARACTER_PAGE_LOADED, characterGroupOverlay.onPageLoad); console.debug('Character context menu initialized', characterContextMenu); -hljs.addPlugin({ 'before:highlightElement': ({ el }) => { el.textContent = el.innerText; } }); - // Markdown converter export let mesForShowdownParse; //intended to be used as a context to compare showdown strings against let converter;