Skip to content

Commit

Permalink
fix: preserve parents in getFrontmatter
Browse files Browse the repository at this point in the history
As long as this function is top-level only, it's ok.
  • Loading branch information
agoose77 committed Nov 5, 2024
1 parent d6b3cfd commit 3c5f748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/myst-transforms/src/frontmatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,6 @@ export function getFrontmatter(
}
}
}
remove(tree, '__delete__');
remove(tree, { cascade: false }, '__delete__');
return { tree, frontmatter, identifiers };
}

0 comments on commit 3c5f748

Please sign in to comment.