Skip to content

Commit

Permalink
Hotfix for Footnotes under Footnote Heading
Browse files Browse the repository at this point in the history
  • Loading branch information
Timo Gremler committed Jun 13, 2023
1 parent 24b7d3d commit bfdca78
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 bfdca78

Please sign in to comment.