Skip to content

Commit

Permalink
🔖 v1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Achuan-2 committed Dec 2, 2024
1 parent c34c918 commit 7e95b52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(/(<span data-type=".*?custom-footnote-index[^>]*>)\[\d+\](<\/span>)/g, '$1${this.i18n.indexAnchor}$2');
footnoteBlock = footnoteBlock.replace(/(<span data-type=".*?custom-footnote-index[^>]*>)\[\d+\](<\/span>)/g, `$1${this.i18n.indexAnchor}$2`);
}
updateBlock("dom", footnoteBlock, footnoteId);
// return setBlockAttrs(footnoteId, { "name": "" });
Expand Down

0 comments on commit 7e95b52

Please sign in to comment.