From 491d921a9b9bf54e62d18b8ad71a140348159fa4 Mon Sep 17 00:00:00 2001 From: WBHarry <89362246+WBHarry@users.noreply.github.com> Date: Mon, 2 Feb 2026 00:40:09 +0100 Subject: [PATCH] Made sure item.toChat enriches descriptions (#1625) --- module/documents/item.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/module/documents/item.mjs b/module/documents/item.mjs index fe62c5bd..67f7d253 100644 --- a/module/documents/item.mjs +++ b/module/documents/item.mjs @@ -185,7 +185,10 @@ export default class DHItem extends foundry.documents.Item { tags: this._getTags() }, actions: item.system.actionsList, - description: this.system.description + description: await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.system.description, { + relativeTo: this.parent, + rollData: this.parent?.getRollData() ?? {} + }) }; const msg = {