[feat] parser in background
This commit is contained in:
@@ -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}
|
||||||
@@ -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{
|
||||||
|
|||||||
Reference in New Issue
Block a user