The default Markdown preview style in VSCode is not very good-looking, you can customize the style.
The method is to find Extensions > Markdown > Markdown: Styles in the VSCode configuration, and then Add Item. You can add the local css file in the current working directory or the URL address.
Problems encountered:
The local css file cannot be an absolute path outside the current working directory, otherwise an error will be reported;
The media type corresponding to the URL address cannot be text/plain, otherwise an error
Could not load 'markdown.styles'will be reported, refer to: https://github.com/microsoft/vscode/issues/148677.
Information
- Author: CrisDaDev
- Link:https://cristorvalds.netlify.app/fragment/vscode-markdown-preview-custom-css/
- Copyright: Free to reprint - non-commercial - non-derivative - keep the signature(Creative Commons 3.0 License)