misc: Improve accessibility
This commit is contained in:
1 parent
ce19dd3a17
commit
0cd8fb1165
6 files changed
+28
-10
No files matched your search
@@ -5,6 +5,7 @@
|
||||
import MarkdownQuote from '$lib/components/markdown/MarkdownQuote.svelte'
|
||||
import SvelteMarkdown from 'svelte-markdown'
|
||||
import MarkdownList from '$lib/components/markdown/MarkdownList.svelte'
|
||||
import MarkdownImage from '$lib/components/markdown/MarkdownImage.svelte'
|
||||
|
||||
export let source: string | undefined
|
||||
</script>
|
||||
@@ -18,6 +19,7 @@
|
||||
hr: MarkdownHr,
|
||||
blockquote: MarkdownQuote,
|
||||
list: MarkdownList,
|
||||
image: MarkdownImage,
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
@@ -0,0 +1,12 @@
|
||||
<script lang="ts">
|
||||
export let href: string = ''
|
||||
export let title: string | undefined = undefined
|
||||
export let text: string = ''
|
||||
</script>
|
||||
|
||||
<img
|
||||
src={href}
|
||||
{title}
|
||||
alt={text}
|
||||
class="max-h-[40vh] border rounded-md border-slate-200 dark:border-zinc-800"
|
||||
/>
|
||||
Reference in new issue
Block a user