blockquotes
This commit is contained in:
parent
10f239b2e5
commit
8c4d92dab7
@ -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}
|
||||
|
3
webapp/src/lib/marked/renderers/Blockquote.svelte
Normal file
3
webapp/src/lib/marked/renderers/Blockquote.svelte
Normal file
@ -0,0 +1,3 @@
|
||||
<p class="border border-l-4 ml-4 prose-p:my-2 prose-p:mx-4">
|
||||
<slot />
|
||||
</p>
|
Loading…
Reference in New Issue
Block a user