[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} {#if backgroundHTML}
<div class="absolute top-0 left-0 w-full h-full"> {#key currentChar.reloadKeys}
{#await ParseMarkdown(risuChatParser(backgroundHTML, {chara:currentChar}), currentChar, 'back') then md} <div class="absolute top-0 left-0 w-full h-full">
{@html md} {#await ParseMarkdown(risuChatParser(backgroundHTML, {chara:currentChar}), currentChar, 'back') then md}
{/await} {@html md}
</div> {/await}
</div>
{/key}
{/if} {/if}

View File

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