-
Notifications
You must be signed in to change notification settings - Fork 37
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
MarkdownLivePreviewSyntax.sublime-settings::"word_wrap": true not functioning #34
Comments
I have the same issue. |
same, preview window not wrapping, a bit frustrating |
Hum... Looked into it and it's a bit weird. Word wrap is on, it's just not wrapping properly. Can you please do the following:
In my case, it is, but wrapping the Phantom (the preview thing) doesn't seem to take into account the minimap, and to wrap properly at all. |
partial fix via custom css:
Links are still nor wrapped neither highlighted (will open a separate issue) |
Sorry, @math2001 , just noticed your prompt response. Yes, word wrap is enabled for both windows, still no avail: |
So, I guess that's Sublime's problem, with the |
Yes, you're right, it's overly wide images & unbroken lines within img {width:680px} (distorts images, but still) |
Does it work? Did you try |
Yep, tried 100%, seems like it interpreted as 100px 😬 body {
font-family: Verdana, "Open Sans", sans-serif;
font-size: 13px;
background-color:white;
width: 680px;
}
html {
background-color:white;
--light-bg: color(var(--background) blend(#eee 85%));
--very-light-bg: color(var(--background) blend(#eee 92%));
}
img {width:680px} |
Seeing the same bug. A bit more tweaking shows that if you put the full URL directly without any link text in the markdown file, it messes up the wrapping. So if you use markdown to shorten that URL when preview, i.e. [link text](your full URL) in markdown, the preview would be all wrapping correctly Hope that is helping somebody |
I have the same issue. It seems this bug has been around for a while ( > 9 months now). The fact that it's not been fixed suggests the project has died... too bad - it's a good idea, but I just don't think this is a useful app if the preview doesn't wrap. |
+1, seems not fix yet? |
+1. No fix yet? |
+1 |
I think I understand what the problem is: the image is too large, so it grows the preview. Otherwise, wrapping works. So, this will be fixed with #48, so I'm closing this. (Feel free to re-open if you disagree) |
It didn't look pretty when images where larger than the viewport, and it "broke" word wrap (because it stretched the phantom, and hence lines wrapped further, see #34) Sublime Text's minihtml only supports width and height attributes on img tags, therefore, we have to determine the aspect ratio of the images ourselves if we want to set a maxsize (so that we can set the height). We use a hacky function copy pasted from stackoverflow to determine the size of common format of images using std lib python.
I still have this issue, is the fix released in the version available on package control? |
I also have this issue when code blocks extend beyond the margins of the preview. If I manually add enough line-breaks to the code block so it doesn't extend beyond the margins of the preview, wrap works correctly again. |
I have added the
"word_wrap":true
setting to my syntax specific settings file but the preview is still not wrapping:My settings file:
The text was updated successfully, but these errors were encountered: