-
Notifications
You must be signed in to change notification settings - Fork 74
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
First empty line in code block is not styled #641
Comments
Hi @OzymandiasTheGreat, thanks for reporting this issue. I'm afraid newlines can't be styled that easily. What platform does this issue report refer to? |
This happens on iOS (simulator). |
Apparently empty lines in a code block aren't styled at all on Android, regardless of whether it's the first line or not. |
Yes, that's correct, the background color is applied only under text, not under the whole block as a rectangle. There are no characters in an empty line so there's no background. |
With text value set to
\n
and markdown ranges set to[{ type: "pre", start: 0, length: 1 }]
there's no visible styling. Adding another new line and extending the range, second line is styled correctly.Context: I'm implementing a WYSIWYG rich text editor on top of live-markdown and when toggling code block there's no visual indication if it's the first line. Once the user starts typing styling is applied correctly, so this isn't a blocker.
The text was updated successfully, but these errors were encountered: