mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 05:45:19 +00:00
refac
This commit is contained in:
parent
7b9b0f23fe
commit
b23600b49d
1 changed files with 7 additions and 1 deletions
|
|
@ -117,7 +117,13 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
onMount(() => {
|
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({
|
editor = new Editor({
|
||||||
element: element,
|
element: element,
|
||||||
extensions: [
|
extensions: [
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue