This commit is contained in:
Timothy Jaeryang Baek committed 2024-11-21 22:15:04 -08:00
1 parent 7b9b0f23fe
commit b23600b49d
1 file changed
+7 -1
@@ -117,7 +117,13 @@
};
onMount(() => {
const content = marked.parse(value);
let content = '';
try {
content = marked.parse(value);
} catch (error) {
console.error('Error parsing markdown content:', error);
}
editor = new Editor({
element: element,
extensions: [