[feat] parser in background

This commit is contained in:
kwaroran
2023-07-17 16:40:19 +09:00
parent 297568e704
commit 7165795507
2 changed files with 9 additions and 5 deletions

View File

@@ -42,9 +42,11 @@
{#if backgroundHTML}
<div class="absolute top-0 left-0 w-full h-full">
{#await ParseMarkdown(risuChatParser(backgroundHTML, {chara:currentChar}), currentChar, 'back') then md}
{@html md}
{/await}
</div>
{#key currentChar.reloadKeys}
<div class="absolute top-0 left-0 w-full h-full">
{#await ParseMarkdown(risuChatParser(backgroundHTML, {chara:currentChar}), currentChar, 'back') then md}
{@html md}
{/await}
</div>
{/key}
{/if}

View File

@@ -361,6 +361,7 @@ export interface character{
ttsReadOnlyQuoted?:boolean
replaceGlobalNote:string
backgroundHTML?:string
reloadKeys?:number
}
@@ -398,6 +399,7 @@ export interface groupChat{
suggestMessages?:string[]
orderByOrder?:boolean
backgroundHTML?:string,
reloadKeys?:number
}
export interface botPreset{