Skip to content

Commit 8ddf262

Browse files
committed
fix: handle async rendering error in MarkdownRenderer and improve fallback return value
1 parent c32ddba commit 8ddf262

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

custom/MarkdownRenderer.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
const html = marked(String(props.record[props.column.name]));
1616
if (html instanceof Promise) {
1717
console.error("Async rendering is not supported in this setup.");
18-
return '-';
18+
return '';
1919
}
2020
return DOMPurify.sanitize(html);
2121
});
2222
</script>
2323

2424
<style lang="scss">
25-
25+
2626
.mdwn h1 {
2727
@apply text-2xl font-bold mt-2 mb-2;
2828
}

0 commit comments

Comments
 (0)