pitr / gemini-ios

Elaho - iOS browser for Gemini protocol
Mozilla Public License 2.0
116 stars 6 forks source link

Pre-formatted text is not visible if text wraps #35

Open merelister opened 2 years ago

merelister commented 2 years ago

The text in lines that start with ``` do not wrap, so part of the text is cut off. image0

You can drag to scroll horizontally on the line of text, but the portion that was cut off will not be visible. image1

However, if you highlight the text and copy/paste it elsewhere, the hidden text can be copied too.

(screenshots from gemini.circumlunar.space/docs/cheatsheet.gmi)

pitr commented 2 years ago

yes unfortunately this is a known issue. I have spent a lot of time trying to debug it and understand the root cause. I know that if I disable the custom font then the problem disappears, but then the result is not as pretty, and headers on pages like gemini://gemini.cyberbot.space/ don't render well. I am tempted to just bite the bullet and disable the custom font.