Skip to content

Commit

Permalink
Merge pull request #1 from gremi-jr/fix-footnote-under-header
Browse files Browse the repository at this point in the history
Hotfix for Footnotes under Footnote Heading
  • Loading branch information
gremi-jr committed Jun 13, 2023
2 parents 24b7d3d + bfdca78 commit da2d696
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ import '@logseq/libs';
}
}
}

//needed for entering footnotes after the footnote header
logseq.Editor.saveFocusedCodeEditorContent()

//adding footnote to text
const block = await logseq.Editor.getBlock(e.uuid)
const newBlockText = block.content + "[^"+ footnoteindex +"]"
Expand Down

0 comments on commit da2d696

Please sign in to comment.