We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d0a595 commit b79e8bfCopy full SHA for b79e8bf
src/app/Markdown.js
@@ -29,6 +29,6 @@ marked.use({
29
});
30
31
export default function markdown(input) {
32
- const content = marked(input);
+ const content = marked(input || "");
33
return `<div class="space-y-2 spaxe-x-2">${content.replace(/<(info|warn)>([\s\S]+)<\/\1>/gi, '<div class="$1">$2</div>')}</div>`;
34
}
0 commit comments