Unwrap paragraphs moves images into same line, makes them tiny

I pasted several images into a WR4 file, which were displayed in a size similar to the original image sizes. Upon being prompted to unwrap paragraphs, the images in the file are now all on the same row, tiny and illegible:

In order to get them to appear in the previous size, I placed my cursor in the space in between the images and then hit return on the keyboard to place them on separate lines. This fixed it, but the behavior seems like a bug, so figured I’d share.

I think the behavior is expected, but definitely a little confusing and likely can be improved.

The general idea is that images that are inline with other text should draw at the small text size. Images on their own should draw at a larger size.

I think your images were on separate touching lines, something like this:

![](assets/image-1.png)
![](assets/image-2.png)
![](assets/image-3.png)

WriteRoom’s “size image” logic saw those as each being on own line. But Markdown’s logic see’s those images as all being part of the same paragraph. Markdown, by default, uses blank lines to separate paragraphs. When you have separate lines together like this it calls the paragraph hard wrapped. A bit more info here.

Except WriteRoom isn’t really meant to work with hard wrapped paragraphs… so when you open a document it offers to remove those hard wrapped lines… which collapsed your image list… which changed the way that writeroom drew the images. Phew!

I think I will try to improve the behavior by:

  1. Show images small when they are part of a hard wrapped paragraph, even if the image is on own line.
  2. When you paste an image ensure that it’s part of own paragraph (add whitespace)
1 Like

Also forgot to mention, that’s a very intriguing set of images!

They’re included in my notes for a campaign of the Mothership tabletop roleplaying game. :slight_smile:

1 Like