[feat] new fast parser

This commit is contained in:
kwaroran
2023-07-17 16:30:55 +09:00
parent 1c409a04f7
commit 297568e704
5 changed files with 126 additions and 20 deletions

View File

@@ -1,5 +1,5 @@
<script lang="ts">
import { ParseMarkdown } from "src/ts/parser";
import { ParseMarkdown, risuChatParser } from "src/ts/parser";
import { DataBase, type Database, type character, type groupChat } from "src/ts/storage/database";
import { selectedCharID } from "src/ts/stores";
import { onDestroy } from "svelte";
@@ -43,7 +43,7 @@
{#if backgroundHTML}
<div class="absolute top-0 left-0 w-full h-full">
{#await ParseMarkdown(backgroundHTML, currentChar, 'back') then md}
{#await ParseMarkdown(risuChatParser(backgroundHTML, {chara:currentChar}), currentChar, 'back') then md}
{@html md}
{/await}
</div>