Make rid prop in the Markdown component optional

This commit is contained in:
Sebastian Martinez
2025-05-08 11:55:54 +02:00
parent ce18d024a0
commit f427902005
+2 -2
View File
@@ -12,13 +12,13 @@
import { tick } from "svelte";
interface Props {
rid: string;
rid?: string;
content: string;
// If true, add <br> on a single line break
breaks?: boolean;
}
const { rid, content, breaks = false }: Props = $props();
const { rid = "", content, breaks = false }: Props = $props();
let container: HTMLElement;