blockquotes

This commit is contained in:
Maxime Cannoodt 2022-06-24 14:06:11 +02:00
parent 10f239b2e5
commit 8c4d92dab7
2 changed files with 6 additions and 1 deletions

View File

@ -9,6 +9,7 @@
import Tag from '$lib/marked/renderers/Tag.svelte';
import Highlight from '$lib/marked/renderers/Highlight.svelte';
import InternalEmbed from '$lib/marked/renderers/InternalEmbed.svelte';
import Blockquote from '$lib/marked/renderers/Blockquote.svelte';
export let plaintext: string;
@ -32,7 +33,8 @@ prose-blockquote:first:before:content-['']"
'internal-link': InternalLink,
'internal-embed': InternalEmbed,
tag: Tag,
highlight: Highlight
highlight: Highlight,
blockquote: Blockquote
}}
source={plaintext}
{options}

View File

@ -0,0 +1,3 @@
<p class="border border-l-4 ml-4 prose-p:my-2 prose-p:mx-4">
<slot />
</p>