From 46a9d0f7fed6a5f12aed8974472571335b3b74d1 Mon Sep 17 00:00:00 2001 From: L-Sun Date: Thu, 10 Jul 2025 19:12:20 +0800 Subject: [PATCH] fix(editor): commented heading style (#13140) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Close BS-3613 #### PR Dependency Tree * **PR #13140** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) ## Summary by CodeRabbit * **Style** * Updated default text styling to inherit font weight, style, and decoration from parent elements when bold, italic, underline, or strike attributes are not set. This may result in text more closely matching its surrounding context. --- .../framework/std/src/inline/utils/attribute-renderer.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/blocksuite/framework/std/src/inline/utils/attribute-renderer.ts b/blocksuite/framework/std/src/inline/utils/attribute-renderer.ts index 0ccd98a277..84d652d60c 100644 --- a/blocksuite/framework/std/src/inline/utils/attribute-renderer.ts +++ b/blocksuite/framework/std/src/inline/utils/attribute-renderer.ts @@ -30,9 +30,9 @@ function inlineTextStyles( } return styleMap({ - 'font-weight': props.bold ? 'bold' : 'normal', - 'font-style': props.italic ? 'italic' : 'normal', - 'text-decoration': textDecorations.length > 0 ? textDecorations : 'none', + 'font-weight': props.bold ? 'bold' : 'inherit', + 'font-style': props.italic ? 'italic' : 'inherit', + 'text-decoration': textDecorations.length > 0 ? textDecorations : 'inherit', ...inlineCodeStyle, }); }