Merge pull request #2194 from LenAnderson/remove-hljs-innerText

don't replace codeblock textContent with innerText in hljs
This commit is contained in:
Cohee 2024-05-08 18:13:02 +03:00 committed by GitHub
commit f37e444791
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 2 deletions

View File

@ -424,8 +424,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;