From f951846d240a1dcaf6da7932b86aafd03dfc3822 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Fri, 17 Apr 2026 15:25:07 +0800 Subject: [PATCH] feat: Add style attribute to markdown rendering a tag --- ui/src/chat.ts | 1 + ui/src/main.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/ui/src/chat.ts b/ui/src/chat.ts index 3ce6f11112f..4d0bc92c936 100644 --- a/ui/src/chat.ts +++ b/ui/src/chat.ts @@ -56,6 +56,7 @@ config({ whiteList: Object.assign({}, getDefaultWhiteList(), { video: ['src', 'controls', 'width', 'height', 'preload', 'playsinline'], source: ['src', 'type'], + a: ['href', 'style'], input: ['class', 'disabled', 'type', 'checked'], sup: ['data-title'], iframe: [ diff --git a/ui/src/main.ts b/ui/src/main.ts index fd6ea852af0..0ace0737f62 100644 --- a/ui/src/main.ts +++ b/ui/src/main.ts @@ -58,6 +58,7 @@ config({ whiteList: Object.assign({}, getDefaultWhiteList(), { video: ['src', 'controls', 'width', 'height', 'preload', 'playsinline'], source: ['src', 'type'], + a: ['href', 'style'], input: ['class', 'disabled', 'type', 'checked'], sup: ['data-title'], iframe: [