-
Notifications
You must be signed in to change notification settings - Fork 32k
styles for diff on markdown preview #59289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -258,6 +258,16 @@ | |||
color: var(--vscode-textPreformat-foreground); | |||
} | |||
|
|||
code span.hljs-addition { | |||
background: var(--vscode-diffEditor-insertedTextBackground, rgba(155, 185, 85, 0.2)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This default color was picked up from here: https://github.com/Microsoft/vscode/blob/d9add550e9315d133484f5497362a830a71da29a/src/vs/platform/theme/common/colorRegistry.ts#L292
} | ||
|
||
code span.hljs-deletion { | ||
background: var(--vscode-diffEditor-removedTextBackground, rgba(255, 0, 0, 0.2)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This color was picked up from here:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix. The new css looks good but please move these into the markdown specific css file: /extensions/markdown-language-features/media/highlight.css
Awesome! This change will be in the next vs code insiders build and will go to stable in 1.28 |
Fixes #59288