Huh...
Might be a spacing issue with everything? Not just images.
Even my little example I typed up doesn't render properly for me:
What I typed:

What I see:

Huh...
Might be a spacing issue with everything? Not just images.
Even my little example I typed up doesn't render properly for me:
What I typed:

What I see:

"two inches later"
In case you weren't aware, " is also the symbol for 'seconds'.
I am, I was just making a joke. Although using " on its own here instead of "s" is quite unusual, at least for English, I would say.
Almost never for seconds of time though. But maybe they turned extremely slightly to the left?
Pretty tough bug. Basically this is due to inline images.
In markdown when you post images inline without line breaks the renderer needs to make a decision on how to render the image.
In an ideal world this happens via 2 layout passes. The first pass checks to see how many images inline can fit per line. The 2nd render pass, images are stretched to take up the entire width of the view.
Android doesn't have native markdown support so markdown is implemented in a very hacky way. There is no multiple layout passes basically.
What a lot of apps do to resolve this issue is to just disable inline images entire. If an image is seen it is always rendered full width. This is trivial to implement and would "solve" this bug. The issue is that Lemmy also supports "emojis". Emojis are just images inline in markdown. Emojis generally would not work with this workaround.
I am going to implement a slight workaround. Basically if I can tell that an image is going to take up the entire width I'm going to make the image take up the full width. If not then it will be inline but the bug will still occur.
Edit: This update I'm working on emojis so I can see if there is a better trade off here once everything is said and done.
all 8 comments