mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-15 03:20:33 +08:00
<script lang="ts">
import type * as proj from "@app/lib/project";
import type { ProjectRoute } from "@app/lib/router/definitions";
import Markdown from "@app/components/Markdown.svelte";
export let content: string;
export let getImage: (path: string) => Promise<proj.MaybeBlob>;
export let activeRoute: ProjectRoute;
$: hash = activeRoute.params.hash || null;
</script>
<style>
article {
padding: 2rem;
width: 100%;
background: var(--color-background-1);
border-bottom-left-radius: var(--border-radius-small);
border-bottom-right-radius: var(--border-radius-small);
}
</style>
<article>
<Markdown {content} {getImage} {hash} />
</article>