mirror of
https://github.com/open-webui/open-webui
synced 2024-11-24 04:54:12 +00:00
refac
This commit is contained in:
parent
7b9b0f23fe
commit
b23600b49d
@ -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: [
|
||||
|
Loading…
Reference in New Issue
Block a user