Skip to content

Commit a03edd1

Browse files
fix: correctly support images in the renderer
1 parent 33ce693 commit a03edd1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/routes/tracker/[org]/[repo]/+page.svelte

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script lang="ts">
22
import { page } from "$app/state";
3+
import { Image } from "@lucide/svelte";
34
import { Transparent } from "svelte-exmarkdown";
45
import { Separator } from "$lib/components/ui/separator";
56
import GHBadge from "$lib/components/GHBadge.svelte";
@@ -128,7 +129,14 @@
128129
}
129130
}
130131
]}
131-
/>
132+
>
133+
{#snippet img({ alt })}
134+
<div>
135+
<Image class="h-lh inline-block" />
136+
{alt}
137+
</div>
138+
{/snippet}
139+
</MarkdownRenderer>
132140
</div>
133141
</a>
134142
{/snippet}

0 commit comments

Comments
 (0)