Skip to content

Commit

Permalink
api section formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte committed Dec 1, 2023
1 parent 4f901c5 commit 5af6b8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/api-section.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import { DataAttrsTable, PropsTable } from "@/components";
import { h2 as H2, p as P } from "@/components/markdown";
import type { APISchema } from "@/types";
import { parseMarkdown } from "@/utils";
export let schemas: APISchema[] = [];
</script>
Expand All @@ -21,7 +22,7 @@
>{schema.title}
</h3>
</div>
<P class="!mb-5 !mt-2">{schema.description}</P>
<P class="!mb-5 !mt-2">{@html parseMarkdown(schema.description)}</P>
<div class="flex flex-col gap-4">
{#if schema.props}
<PropsTable props={schema.props} />
Expand Down

0 comments on commit 5af6b8e

Please sign in to comment.