Skip to content

Commit

Permalink
🔖 v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Achuan-2 committed Nov 23, 2024
1 parent 4167fff commit 14e48b4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -495,10 +495,8 @@ export default class PluginFootnote extends Plugin {

// 使用nextElementSibling获取下一个兄弟元素
let nextSibling = targetBlock.nextElementSibling;
console.log(nextSibling);
// 遍历所有后续兄弟元素,直到找到符合条件的元素
while (nextSibling) {
console.log(nextSibling.getAttribute('data-node-id'));
// 检查是否没有custom-plugin-footnote-content="true"属性
if (!nextSibling.hasAttribute('custom-plugin-footnote-content')) {
// 返回找到的元素的data-node-id属性值
Expand All @@ -512,6 +510,7 @@ export default class PluginFootnote extends Plugin {


let nextID = findNextSiblingIdWithoutFootnote(footnoteContainerID);
console.log(nextID);
if (nextID == null) {
back = await insertBlock(
"markdown",
Expand Down

0 comments on commit 14e48b4

Please sign in to comment.