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