mjbvz / vscode-github-markdown-preview-style

VS Code extension that changes the built-in markdown preview to match Github's styling
https://marketplace.visualstudio.com/items?itemName=bierner.markdown-preview-github-styles
MIT License
301 stars 57 forks source link

How to change the background color? #93

Open Michaelzhouisnotwhite opened 1 year ago

Michaelzhouisnotwhite commented 1 year ago

How to change the background color?

jjspace commented 1 year ago

This is an old issue but figured I'd lend an answer.

This can be achieved by providing a custom markdown.styles CSS file in VSCode's settings. See Using your own CSS.

As a note you will have to apply the background style to the .github-markdown-body class not just the body element to avoid the extension overriding it. See comment https://github.com/mjbvz/vscode-github-markdown-preview-style/issues/98#issuecomment-1485584607