Skip to content

Commit

Permalink
Add custom Horizontal Rule renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
sneakycrow committed Oct 14, 2024
1 parent 5552304 commit c5569f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/lib/components/post/HorizontalRule.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<hr class="divider dark:border-white/25 border-black/25" />
4 changes: 3 additions & 1 deletion src/lib/components/post/MarkdownRenderer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import Paragraph from "./Paragraph.svelte";
import Image from "./Image.svelte";
import Link from "./Link.svelte";
import HorizontalRule from "./HorizontalRule.svelte";
import SvelteMarkdown from "svelte-markdown";
export let source: string;
Expand All @@ -19,7 +20,8 @@
heading: Heading,
list: List,
image: Image,
link: Link
link: Link,
hr: HorizontalRule
}}
{source}
/>

0 comments on commit c5569f1

Please sign in to comment.