diff --git a/src/renderer/utils/markdownPlugins.ts b/src/renderer/utils/markdownPlugins.ts index 19ebf4fe..a4089d76 100644 --- a/src/renderer/utils/markdownPlugins.ts +++ b/src/renderer/utils/markdownPlugins.ts @@ -36,14 +36,8 @@ const sanitizeSchema: SanitizeSchema = { ], attributes: { ...defaultSchema.attributes, - // Preserve default global attributes - '*': [...(defaultSchema.attributes?.['*'] ?? [])], // Allow title on abbr (for tooltip definitions) - abbr: ['title'], - // Preserve all existing attribute rules - ...Object.fromEntries( - Object.entries(defaultSchema.attributes ?? {}).filter(([k]) => k !== '*') - ), + abbr: [...(defaultSchema.attributes?.['abbr'] ?? []), 'title'], }, };