CLASSROOMIO-T-80: Replace sapper with sveltekit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<script>
|
||||
import { marked } from 'marked';
|
||||
|
||||
export let content = '';
|
||||
export let disableMaxWidth = false;
|
||||
</script>
|
||||
|
||||
<article
|
||||
class="m-auto prose prose-sm sm:prose p-2 {disableMaxWidth &&
|
||||
'disable-max-width'}"
|
||||
>
|
||||
{#if !!content}
|
||||
{@html marked(content, { breaks: true, gfm: true })}
|
||||
{/if}
|
||||
</article>
|
||||
|
||||
<style>
|
||||
.disable-max-width {
|
||||
max-width: none !important;
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user