-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
Markdown Preview Suggestion #20836
Comments
I've prototype an API that allows extensions to contribute styles and other features to the markdown preview: #22916 Here's a prototype extension that contributes a github style: https://github.com/mjbvz/vscode-github-markdown-preview-style Give it a try in the latest insiders builds and let me know if you run into any issues. Also, please let me know if you are interested in authoring/contributing to an extension that changes the markdown preview style |
@mjbvz Sorry for the delay! Just installed insiders and tried installing using the
I'd be happy to help if that's needed. |
Thanks, I've update the readme and rebuilt the vsix. Here's what the preview normally looks like: and here's what it should look like with the extension enabled: Feel free to try out the github example extension and submit PRs or file issues against it if you notice any bugs. I'm not going to publish it to the marketplace until we ship this extension functionality in the main VSCode code release If you have any other ideas on how you could use an extension to customize the markdown preview styling, you can also try putting together a new extension. I'd be happy to help out if you have any questions on this and the Github style extension may be a good starting point for this. I'd also be interested to hear if you run into any obstacles with the new API or have any feedback on it |
@mjbvz Hey, sorry about that. I think my brain must have been halfway powered off last night when I tried it 😝 I'd be happy to maintain a github markdown style package if you're looking to offload that duty to free up bandwidth on yourself. That said, I can't really try it out until it lands in the regular build because the insiders edition package for my arch isn't building due to failed checksums. (Arch linux) I installed the insiders edition on my Macbook pro but it doesn't look like any of my settings carry over between the two so I'd prefer not to travel down that rabbit hole if I can avoid it. |
@mjbvz Installed the vsix, but I still see the preview in dark background while using dark theme |
Thank you for testing this @ramya-rao-a, but this issue this should not have been included in the milestone. Sorry about that. We're going to keep the the markdown preview extensions experimental at least one more iteration to give the general preview story Ben is looking into time to settle down |
Then can you move it to the next milestone so that it can verified next month? |
Hi there. Just a friendly drop in the suggestion box:
One of the biggest pain points I've had in VS Code is how markdown preview works.
Currently, if a user has a dark theme selected, then the markdown preview will render in a dark style. Period. Even with custom CSS set.
I'm a huge proponent for dark themes for code, but I'd prefer to personally read markdown the same way as it will read on Github, Gitlab, etc (with a light theme).
As of right now, I'm finding myself using VS Code for everything -- except markdown -- for this very reason. It's really the only reason I have atom still installed on my machine.
Thanks for considering!
The text was updated successfully, but these errors were encountered: