From 78fa44ec10da203df97b329fddf232803ca08bae Mon Sep 17 00:00:00 2001 From: Jeremy Valentine <38669521+valentine195@users.noreply.github.com> Date: Sat, 12 Aug 2023 21:19:16 -0400 Subject: [PATCH] fix: Creature notes no longer overwrite codeblock parameters (close #243) --- src/view/statblock.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/view/statblock.ts b/src/view/statblock.ts index 8b5885aa..e7c693ca 100644 --- a/src/view/statblock.ts +++ b/src/view/statblock.ts @@ -105,7 +105,11 @@ export default class StatBlockRenderer extends MarkdownRenderChild { ); if (file && file instanceof TFile) { const cache = await app.metadataCache.getFileCache(file); - Object.assign(built, fastCopy(cache.frontmatter) ?? {}); + Object.assign( + built, + fastCopy(cache.frontmatter) ?? {}, + this.params + ); } } if ("image" in built) {