Commit 35f420a 1 parent 7e95b52 commit 35f420a Copy full SHA for 35f420a
File tree 3 files changed +9
-4
lines changed
3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change
1
+ ## v1.2.3 / 2024.12.02
2
+
3
+ - 🐛 fix 命令【取消脚注编号】对index内容的重命名错误
4
+
1
5
## v1.2.2 / 2024.12.02
2
6
3
7
- ✨ 脚注容器标题可以支持设置为段落块,不需要一定是标题了!
Original file line number Diff line number Diff line change 2
2
"name" : " siyuan-plugin-blockref-footnote" ,
3
3
"author" : " Achuan-2" ,
4
4
"url" : " https://github.com/Achuan-2/siyuan-plugin-blockref-footnote" ,
5
- "version" : " 1.2.2 " ,
5
+ "version" : " 1.2.3 " ,
6
6
"minAppVersion" : " 3.1.13" ,
7
7
"backends" : [
8
8
" windows" ,
Original file line number Diff line number Diff line change @@ -412,8 +412,8 @@ export default class PluginFootnote extends Plugin {
412
412
} ,
413
413
editorCallback : async ( protyle : any ) => {
414
414
if ( protyle . block ?. rootID ) {
415
- await this . reorderFootnotes ( protyle . block . rootID , true ) ;
416
415
await pushMsg ( this . i18n . cancelReorderFootnotes + " ..." ) ;
416
+ await this . reorderFootnotes ( protyle . block . rootID , true ) ;
417
417
await pushMsg ( this . i18n . cancelReorderFootnotes + " Finished" ) ;
418
418
}
419
419
} ,
@@ -1316,12 +1316,13 @@ export default class PluginFootnote extends Plugin {
1316
1316
Array . from ( footnoteIds ) . map ( async footnoteId => {
1317
1317
let footnoteBlock = ( await getBlockDOM ( footnoteId ) ) . dom ;
1318
1318
if ( footnoteBlock ) {
1319
- footnoteBlock = footnoteBlock . replace ( / ( < s p a n d a t a - t y p e = " .* ?c u s t o m - f o o t n o t e - i n d e x [ ^ > ] * > ) \[ \d + \] ( < \/ s p a n > ) / g, `$1${ this . i18n . indexAnchor } $2` ) ;
1319
+ footnoteBlock = footnoteBlock . replace ( / ( < s p a n d a t a - t y p e = " .* ?c u s t o m - f o o t n o t e - i n d e x [ ^ > ] * > ) [ ^ < ] * ( < \/ s p a n > ) / g, "$1" + this . i18n . indexAnchor + "$2" ) ;
1320
+ updateBlock ( "dom" , footnoteBlock , footnoteId ) ;
1320
1321
}
1321
- updateBlock ( "dom" , footnoteBlock , footnoteId ) ;
1322
1322
// return setBlockAttrs(footnoteId, { "name": "" });
1323
1323
} )
1324
1324
) ;
1325
+
1325
1326
}
1326
1327
1327
1328
}
You can’t perform that action at this time.
0 commit comments