mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-10 17:10:14 +01:00
don't replace codeblock textContent with innerText in hljs
This commit is contained in:
parent
4a70e68c22
commit
1ae08f49c5
@ -423,8 +423,6 @@ const characterContextMenu = new CharacterContextMenu(characterGroupOverlay);
|
|||||||
eventSource.on(event_types.CHARACTER_PAGE_LOADED, characterGroupOverlay.onPageLoad);
|
eventSource.on(event_types.CHARACTER_PAGE_LOADED, characterGroupOverlay.onPageLoad);
|
||||||
console.debug('Character context menu initialized', characterContextMenu);
|
console.debug('Character context menu initialized', characterContextMenu);
|
||||||
|
|
||||||
hljs.addPlugin({ 'before:highlightElement': ({ el }) => { el.textContent = el.innerText; } });
|
|
||||||
|
|
||||||
// Markdown converter
|
// Markdown converter
|
||||||
export let mesForShowdownParse; //intended to be used as a context to compare showdown strings against
|
export let mesForShowdownParse; //intended to be used as a context to compare showdown strings against
|
||||||
let converter;
|
let converter;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user