-
Notifications
You must be signed in to change notification settings - Fork 29.5k
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
Toggling word wrap on markdown preview does nothing #15921
Comments
This happens to me with long paragraphs as well, not just long lines inside code blocks. That seems like a bug though, since the Markdown preview is not wrapping long lines correctly. |
@rolodato Can you please provide some example md that shows this for paragraphs? The non-wrapping behavior for code blocks and inline code is currently by design, but I think we should improve this. Until this is fixed, you can use custom css in the markdown preview to add |
@mjbvz Oddly enough I can't reproduce this anymore on 1.8.0. Markdown preview is showing wrapped lines correctly, and the Markdown editor lets me toggle between wrap on/off as expected. I was describing a slightly different issue than the OP though, my comment was just for long paragraphs, not code blocks. |
@mjbvz Word wrap is not working again. I think it's because of the word wrap settings redesign in 1.10. |
@Dominik-K I've opened #25357 to track this |
Steps to Reproduce:
I have a markdown file with a really long command (curl output piped to a long
jq
filter, but could be anything) within a triple back-ticked code block. I can press Option-Z (or select from menu) in the editor to toggle word wrap like any text file. However, in markdown preview, toggling word wrap does nothing--I always have to scroll that single line to view all content.I understand that Github still does not implement this behavior by default but there has been
an old issue tracking it, and while markdown rendering behavior is up to individual applications, it would be nice if VS Code could match word wrap toggle modes in both editing and preview.
The text was updated successfully, but these errors were encountered: