From c0fb1e8db8734babfe969911444f9a67dc2e7469 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A1=97=E8=A7=92=E5=B0=8F=E6=9E=97?= <1013335014@qq.com> Date: Fri, 29 Dec 2023 16:48:23 +0800 Subject: [PATCH] =?UTF-8?q?Demo=EF=BC=9A=E5=85=AC=E5=BC=8Fkatex=E5=BA=93?= =?UTF-8?q?=E7=9A=84=E9=85=8D=E7=BD=AE=E4=BB=8Esimple-mind-map=E5=BA=93?= =?UTF-8?q?=E4=B8=AD=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/pages/Edit/components/FormulaSidebar.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/src/pages/Edit/components/FormulaSidebar.vue b/web/src/pages/Edit/components/FormulaSidebar.vue index 53fd655f..cc5ca88c 100644 --- a/web/src/pages/Edit/components/FormulaSidebar.vue +++ b/web/src/pages/Edit/components/FormulaSidebar.vue @@ -78,10 +78,10 @@ export default { init() { this.list = formulaList.map(item => { return { - overview: window.katex.renderToString(item, { - throwOnError: false, - output: 'mathml' - }), + overview: window.katex.renderToString( + item, + this.mindMap.formula.getKatexConfig() + ), text: item } })