Changes VS Code's built-in markdown preview to match GitHub's styling.
Includes support for both light and dark GitHub themes. By default, the theme type (light vs dark) is selected based on your VS Code theme.
❗️ Important: This extension only styles the Markdown preview. Use this extension pack to add support for other GitHub markdown features like
:emoji:
and- [ ] tasklists
.
markdown.styles
css
.github-markdown-body
instead of just body
so they don't get overridden by this extensionPlease see the VSCode Markdown Preview documentation for instructions on how to use this extension.
By default, this extension uses the Github theme that matches VS Code's color theme (light/dark). These settings let you further customize which Github theme the Markdown preview uses.
markdown-preview-github-styles.colorTheme
Sets the color theme mode for the styling of the Markdown preview. Default: auto
.
Auto (match editor)
: Automatically match the editor color theme (light/dark).System
: Sync to the system/OS color theme.Single theme: Light
: Always use the selected Light theme. See markdown-preview-github-styles.lightTheme
Single theme: Dark
: Always use the selected Dark theme. See markdown-preview-github-styles.darkTheme
markdown-preview-github-styles.lightTheme
and markdown-preview-github-styles.darkTheme
.
Specify the theme used when in Light/Dark mode. Only the matching setting applies when colorTheme
is in Single theme
mode.
Available themes:
light
light_high_contrast
light_colorblind
light_tritanopia
dark
dark_high_contrast
dark_colorblind
dark_tritanopia
dark_dimmed