CLASSROOMIO-T-214: Add comments feature in lesson

This commit is contained in:
Rotimi Best
2023-10-08 15:34:37 +01:00
parent 0f01e8e574
commit 4f783cbc7c
28 changed files with 411 additions and 398 deletions
@@ -1,6 +1,5 @@
<script>
import CodeSnippet from '$lib/components/CodeSnippet/index.svelte';
import { marked } from 'marked';
import PrimaryButton from '$lib/components/PrimaryButton/index.svelte';
import { VARIANTS } from '$lib/components/PrimaryButton/constants';
import TextArea from '$lib/components/Form/TextArea.svelte';
@@ -62,7 +61,7 @@
<div class="ml-4">
{#if disabled}
<div class="bg-gray-200 dark:bg-gray-500 p-5 rounded-md mb-3">
{@html marked(defaultValue)}
{defaultValue}
</div>
{:else}
<TextArea bind:value={defaultValue} rows="5" placeholder="Write your answer here" />