mirror of
https://seed.radicle.dev/rad:z4D5UCArafTzTQpDZNQRuqswh3ury.git
synced 2026-10-18 19:10:45 +08:00
Make rid prop in the Markdown component optional
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user