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, }); }