Proper html formatting

This commit is contained in:
Rotimi Best
2023-09-24 12:24:28 +01:00
parent 61826452c1
commit de87dc5191
4 changed files with 22 additions and 11 deletions
@@ -5,6 +5,7 @@
import MagicWandFilled from 'carbon-icons-svelte/lib/MagicWandFilled.svelte';
import IconButton from '$lib/components/IconButton/index.svelte';
import { Loading } from 'carbon-components-svelte';
import HtmlRender from '$lib/components/HTMLRender/HTMLRender.svelte';
export let className = '';
export let handleInsert = (v: string) => {};
@@ -66,10 +67,10 @@
<div class="h-[200px]">
<div
bind:this={textRef}
class="h-[82%] bg-white dark:text-black p-2 overflow-y-auto text-sm text-start w-full my-1"
class="h-[82%] bg-white dark:bg-neutral-700 dark:text-black p-2 overflow-y-auto text-sm text-start w-full my-1"
>
{#if isHTML}
{@html plainText}
<HtmlRender content={plainText} />
{:else}
<p class="font-normal">
{plainText}