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

`markdown.preview.fontFamily` not respected #105

Closed Andy-Dihong-Luo closed 1 year ago

Andy-Dihong-Luo commented 1 year ago

I want to configure the font family via markdown.preview.fontFamily, but nothing happened to the preview. The font just stay still.

jjspace commented 1 year ago

Similar to #30 and there's some extra discussion about that one in https://github.com/mjbvz/vscode-github-markdown-preview-style/pull/44 The goal of this plugin is to match Github's rendering as close as possible so I'm not sure it makes sense to include this?

You can probably achieve this 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 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