Skip to content
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

Closed
erhhung opened this issue Nov 22, 2016 · 5 comments · Fixed by #17361
Closed

Toggling word wrap on markdown preview does nothing #15921

erhhung opened this issue Nov 22, 2016 · 5 comments · Fixed by #17361
Assignees
Labels
feature-request Request for new features or functionality markdown Markdown support issues
Milestone

Comments

@erhhung
Copy link

erhhung commented Nov 22, 2016

  • VSCode Version: 1.7.1
  • OS Version: macOS 10.12.1

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.

@mjbvz mjbvz added feature-request Request for new features or functionality markdown Markdown support issues labels Nov 23, 2016
@mjbvz mjbvz self-assigned this Nov 23, 2016
@rolodato
Copy link

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.

@mjbvz
Copy link
Collaborator

mjbvz commented Dec 15, 2016

@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 white-space, word-wrap, or word-break properties to get better wrapping.

@rolodato
Copy link

rolodato commented Dec 15, 2016

@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.

@Dominik-K
Copy link

@mjbvz Word wrap is not working again. I think it's because of the word wrap settings redesign in 1.10.

@mjbvz
Copy link
Collaborator

mjbvz commented Apr 26, 2017

@Dominik-K I've opened #25357 to track this

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality markdown Markdown support issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants