johnandersen777.bsky.social/knotless
git that lives in your Atmosphere account
Forked from chadtmiller.com/knotless
0
0
<script lang="ts">
import type * as getTree from '#lib/lexicons/dev/knotless/getTree.ts';
import Icon from '#lib/atoms/Icon.svelte';
import { fences } from '#lib/highlight.ts';
import { diagrams } from '#lib/mermaid.ts';
let { readme }: { readme: getTree.Readme } = $props();
</script>
<article class="box">
<div class="boxhead"><Icon name="file" /><b>{readme.name}</b></div>
{#if readme.html !== undefined}
<div class="prose" use:diagrams={readme.html} use:fences={readme.html}>{@html readme.html}</div>
{:else}
<div class="prose"><pre>{readme.text}</pre></div>
{/if}
</article>