-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Use VS Code's syntax highlighting in Markdown preview #91279
Comments
@aeschli The markdown extension needs a command or api to get the semantic highlighting colors in order to support this |
See #56356 for api feature request to get colors as they appear in the editor Try this extension to get closer to VS Code's highlighting (but still without semantic highlighting): https://marketplace.visualstudio.com/items?itemName=bierner.markdown-shiki |
@mjbvz I have been looking at bierner.markdown-shiki and it is great. Is there a way I can convert my MD to a PDF with this highlighting you know of? Cheers. |
I would also request an option to switch between VSCode themes and other standard markdown themes like GitHub's, GitLabs's, NuGet's and other places where they render markdown in their own styling. |
It would be nice to support |
Another place where this is very apparent: new languages added to VSCode don't have syntax highlighting by default in the markdown preview. Oddly enough, any code blocks added as markdown and displayed via hover help and a language server have the proper color/style to match the editor, but are lacking from the markdown preview. |
Issue Type: Bug
When I use
"editor.semanticHighlighting.enabled": true,
TypeScript looks great, but now the Markdown code looks bad in comparison. Please see the screenshot.VS Code version: Code 1.42.1 (c47d83b, 2020-02-11T14:50:36.977Z)
OS version: Linux x64 4.18.0-147.5.1.el8_1.x86_64
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: disabled_software
skia_renderer: disabled_off
surface_control: disabled_off
surface_synchronization: enabled_on
video_decode: unavailable_off
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off
webgl: enabled
webgl2: enabled
Extensions (9)
The text was updated successfully, but these errors were encountered: