Skip to content
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

Indentation error in some posts #33

Open
StellaeAlis opened this issue Oct 30, 2023 · 2 comments
Open

Indentation error in some posts #33

StellaeAlis opened this issue Oct 30, 2023 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@StellaeAlis
Copy link

This post in particular seems to have a problem with indentation. It seems like there are spaces at the beginning of some lines.

Screenshots

IMG_4476
IMG_4477

@StellaeAlis
Copy link
Author

More examples

IMG_4478
IMG_4479

@nilathedragon nilathedragon added the bug Something isn't working label Oct 30, 2023
@nilathedragon
Copy link
Contributor

This is a result of the way we render MisskeyFlavouredMarkdown.

There was no proper MFM Renderer available for Swift, so I had to write one myself.

SwiftUI doesn't have a nice way of flowing separate big boxes of text, so we break all text into small boxes that can be flowed easily. One drawback of this is that sometimes a box with a ' ' might be the first one in its line.

This is probably way easier in UIKit directly, but thats out of my league for now ^^

@nilathedragon nilathedragon added the help wanted Extra attention is needed label Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants