Refactor script caching functions to include mode parameter and improve background HTML parsing

This commit is contained in:
kwaroran
2024-11-12 21:50:40 +09:00
parent c863f749b8
commit 4627aacbf9
2 changed files with 8 additions and 8 deletions

View File

@@ -14,7 +14,7 @@
{#if selIdState.selId > -1}
{#key $ReloadGUIPointer}
<div class="absolute top-0 left-0 w-full h-full">
{#await ParseMarkdown(risuChatParser((backgroundHTML || '') + ($moduleBackgroundEmbedding || ''), {chara:currentChar}), currentChar, 'back') then md}
{#await ParseMarkdown(risuChatParser((backgroundHTML || '') + '\n' + ($moduleBackgroundEmbedding || ''), {chara:currentChar}), currentChar, 'back') then md}
{@html md}
{/await}
</div>