-
Notifications
You must be signed in to change notification settings - Fork 64
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
Additional line breaks before subscript text #1196
Comments
Thanks for the detailed report! Markdown itself doesn't officially support subscript or superscript tags (see flutter/flutter#81717) so this had to be implemented manually 😅 |
Just a quick update - I tried a couple of changes on my end to see if I could fix this issue easily, and it seems like its going to take some effort to get this to work properly. This is what I believe is happening at the moment:
I tried to parse both the preceding text and super/subscript text together to get past that issue with it breaking into the next line, but this completely breaks markdown formatting for the preceding text (e.g., bolded text gets shown as raw markdown). This also causes another similar issue with line breaking if there are multiple super/subscripts in a single paragraph. |
Bug Description
When subscript text is inputted with
~text~
after long enough text without breaks, a post renders with a line break before that textExpected Behaviour
There should be no extra line break
Steps to Reproduce
Post a text like
. .~s~
, you may need to adjust amount of spacesAdditional Context
It seems to depend on screen size and interface size settings:
* I would argue that it should take the preceding text to the next line if there is no space before subscipt, i.e. not put line break between
text~index~
but allow to breaktext ~index
. That's a bit tangential to the issue, though.App Version
0.3.0-1
Device
Pixel 8 Pro
OS
Android 14 kernel 5.15.110-android14-11-gcc48824eebe8-ab10865596
The text was updated successfully, but these errors were encountered: