From a31d0e06dcc55634af99c1bc495d1487d1a817c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=BF=83=E5=AE=87?= Date: Thu, 16 May 2024 10:03:29 +0800 Subject: [PATCH 1/3] =?UTF-8?q?md=20=E6=A0=87=E9=A2=98=E4=B8=AD=E5=8C=85?= =?UTF-8?q?=E5=90=AB=E6=A0=87=E7=AD=BE=E5=AF=BC=E8=87=B4=E6=B8=B2=E6=9F=93?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/marked.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/common/marked.js b/src/common/marked.js index 22ac47c8..c4d1855f 100644 --- a/src/common/marked.js +++ b/src/common/marked.js @@ -150,6 +150,16 @@ renderer.code = function (code, infostring, escaped) { } +function cleanString(str) { + // 移除整个HTML标签及其内容 + let cleanedStr = str.replace(/<[^>]*>[^<]*<\/[^>]*>/g, ''); + // 移除剩余的HTML标签 + cleanedStr = cleanedStr.replace(/<[^>]*>/g, ''); + // 移除特殊字符 + cleanedStr = cleanedStr.replace(/[.,/#!$%^&*;:{}=\-_`~():,。¥;「」|?》《~·【】‘、!]/g, ''); + return cleanedStr; +} + renderer.heading = function (text, level, raw) { let anchor = this.options.headerPrefix + raw.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g, '-'); toc.push({ @@ -157,7 +167,7 @@ renderer.heading = function (text, level, raw) { level: level, text: text }) - let id = anchor.replace(/[.,/#!$%^&*;:{}=\-_`~():,。¥;「」|?》《~·【】‘、!]/g,""); + let id = cleanString(anchor); return '' + text + '' } marked.setOptions({ From 005d34b2ac25aff3d61e5fe3044a75804a3dd020 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E6=80=9D?= <2897217417@qq.com> Date: Thu, 16 May 2024 16:28:59 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BA=91=E9=99=85?= =?UTF-8?q?=E4=B8=93=E5=8C=BA=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Information/Pages/JCC/Component/index.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/forge/Information/Pages/JCC/Component/index.scss b/src/forge/Information/Pages/JCC/Component/index.scss index 562231b0..1eee1451 100644 --- a/src/forge/Information/Pages/JCC/Component/index.scss +++ b/src/forge/Information/Pages/JCC/Component/index.scss @@ -14,7 +14,7 @@ cursor: pointer; transition: 1s; .grow_path_type { - width: 82px; + // width: 82px; height: 58px; // color: black; font-size: 15px; From 8fbb6d123ed55abbf163c2f589818fdd654bd0f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E6=80=9D?= <2897217417@qq.com> Date: Thu, 16 May 2024 16:32:17 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E5=B7=B2=E6=94=AF=E6=8C=81=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E7=BB=84=E7=BB=87=E4=BB=93=E5=BA=93=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=EF=BC=8C=E5=88=A0=E9=99=A4=E4=B8=8D=E6=94=AF=E6=8C=81=E7=BB=84?= =?UTF-8?q?=E7=BB=87=E4=BB=93=E5=BA=93=E6=96=87=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Server/reposyncer/component/editStore.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/forge/Server/reposyncer/component/editStore.jsx b/src/forge/Server/reposyncer/component/editStore.jsx index 27b6a699..56db629c 100644 --- a/src/forge/Server/reposyncer/component/editStore.jsx +++ b/src/forge/Server/reposyncer/component/editStore.jsx @@ -225,7 +225,7 @@ function EditStore(props){ )} -