We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffa17e9 commit def5697Copy full SHA for def5697
web/src/components/EnhancedMarkdown.astro
@@ -14,11 +14,7 @@ if (!content && Astro.slots.has('default')) {
14
slotMarkdown = await Astro.slots.render('default');
15
}
16
17
-const rawContent = content ?? slotMarkdown;
18
-
19
-if (!rawContent) {
20
- throw new Error('EnhancedMarkdown requires content prop or slot content.');
21
-}
+const rawContent = content ?? slotMarkdown ?? "";
22
23
// We shouldn't this as we're now organizing pages in folders
24
// TODO let's move away from MediaWiki links in the future
0 commit comments