From 9f38d66c733a3ebbb63a4d33185e694a0f920521 Mon Sep 17 00:00:00 2001 From: wangshun Date: Fri, 6 Sep 2024 14:20:36 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A=E7=94=B1=E4=BA=8E=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=20data-value=20=E6=97=B6=E5=B7=B2=E7=BB=8F=E5=AF=B9?= =?UTF-8?q?=E5=A4=A7=E4=BA=8E=E5=B0=8F=E4=BA=8E=E8=BF=9B=E8=A1=8C=E4=BA=86?= =?UTF-8?q?=E8=BD=AC=E6=8D=A2=EF=BC=8C=E5=9B=A0=E6=AD=A4=E5=8F=96=E6=B6=88?= =?UTF-8?q?=E6=89=93=E5=BC=80=E6=96=87=E6=9C=AC=E7=BC=96=E8=BE=91=E6=97=B6?= =?UTF-8?q?=E5=AF=B9=E5=A4=A7=E4=BA=8E=E5=B0=8F=E4=BA=8E=E7=AC=A6=E5=8F=B7?= =?UTF-8?q?=E7=9A=84=E8=BD=AC=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- simple-mind-map/src/plugins/Formula.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/simple-mind-map/src/plugins/Formula.js b/simple-mind-map/src/plugins/Formula.js index 4204224f..59f15450 100644 --- a/simple-mind-map/src/plugins/Formula.js +++ b/simple-mind-map/src/plugins/Formula.js @@ -113,11 +113,7 @@ class Formula { for (const el of els) nodeText = nodeText.replace( el.outerHTML, - `\$${el - .getAttribute('data-value') - .replaceAll('&', '&') - .replaceAll('<', '<') - .replaceAll('>', '>')}\$` + `$${el.getAttribute('data-value')}$` ) } return nodeText