diff --git a/webview-ui/src/components/common/MarkdownBlock.tsx b/webview-ui/src/components/common/MarkdownBlock.tsx index 8252d480c6e..2af86e8dbc1 100644 --- a/webview-ui/src/components/common/MarkdownBlock.tsx +++ b/webview-ui/src/components/common/MarkdownBlock.tsx @@ -63,6 +63,10 @@ const StyledMarkdown = styled.div` white-space: pre-wrap; } + :where(h1, h2, h3, h4, h5, h6):has(code) code { + font-size: inherit; + } + pre > code { .hljs-deletion { background-color: var(--vscode-diffEditor-removedTextBackground);