diff --git a/extensions/markdown-language-features/media/markdown.css b/extensions/markdown-language-features/media/markdown.css index dba6176ffda5c..168f6a8a862b4 100644 --- a/extensions/markdown-language-features/media/markdown.css +++ b/extensions/markdown-language-features/media/markdown.css @@ -229,8 +229,10 @@ pre.hljs code > div { } pre code { + display: inline-block; color: var(--vscode-editor-foreground); tab-size: 4; + background: none; } /** Theming */ diff --git a/extensions/markdown-language-features/src/markdownEngine.ts b/extensions/markdown-language-features/src/markdownEngine.ts index cd999c4411639..2a2e5896dbdb3 100644 --- a/extensions/markdown-language-features/src/markdownEngine.ts +++ b/extensions/markdown-language-features/src/markdownEngine.ts @@ -398,15 +398,14 @@ async function getMarkdownOptions(md: () => MarkdownIt): Promise${highlighted}`; } catch (error) { } } - return `
${md().utils.escapeHtml(str)}
`; + return md().utils.escapeHtml(str); } }; }