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
@@ -0,0 +1,10 @@
<script>
import { marked } from 'marked';
export let content = '';
export let className = '';
</script>
<article class="preview prose prose-sm sm:prose {className}">
{@html marked(content, { breaks: true, gfm: true })}
</article>