This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

core / web / src / lib / components / repo / issues / IssueBody.svelte
553 B 17 lines
1<script lang="ts"> 2 interface Props { 3 // raw markdown source, used as a fallback when rendering was skipped 4 body: string; 5 // sanitised html from $lib/markup, or null if the body was empty/too large 6 bodyHtml: string | null; 7 } 8 9 let { body, bodyHtml }: Props = $props(); 10</script> 11 12{#if bodyHtml} 13 <!-- eslint-disable-next-line svelte/no-at-html-tags -- sanitised in $lib/markup --> 14 <article class="markup mt-4">{@html bodyHtml}</article> 15{:else if body} 16 <article class="mt-4 whitespace-pre-wrap text-foreground-default">{body}</article> 17{/if}