Skip to content

Commit

Permalink
🔖 v1.1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Achuan-2 committed Dec 1, 2024
1 parent 521100a commit e09ccc3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1094,11 +1094,10 @@ export default class PluginFootnote extends Plugin {
const renderedTemplate = await renderTemplates(templates);

// Update block content

const existingAttrs = await getBlockAttrs(newBlockId);
await updateBlock("markdown", renderedTemplate, newBlockId);

// Restore block attributes that could have been reset by updateBlock
const existingAttrs = await getBlockAttrs(newBlockId);

if (existingAttrs) {
await setBlockAttrs(newBlockId, {
"custom-plugin-footnote-content": existingAttrs["custom-plugin-footnote-content"],
Expand Down

0 comments on commit e09ccc3

Please sign in to comment.