From 7e95b5212e48b73979b19ddb034e5da608530b02 Mon Sep 17 00:00:00 2001 From: Tron Date: Mon, 2 Dec 2024 16:16:15 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=96=20v1.2.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 696eb5b..ab5f887 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1316,7 +1316,7 @@ export default class PluginFootnote extends Plugin { Array.from(footnoteIds).map(async footnoteId => { let footnoteBlock = (await getBlockDOM(footnoteId)).dom; if (footnoteBlock) { - footnoteBlock = footnoteBlock.replace(/(]*>)\[\d+\](<\/span>)/g, `$1${this.i18n.indexAnchor}$2`); } updateBlock("dom", footnoteBlock, footnoteId); // return setBlockAttrs(footnoteId, { "name": "" });