-
Notifications
You must be signed in to change notification settings - Fork 93
Customize line height for headings #535
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
base: main
Are you sure you want to change the base?
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
TODO: fix font size or line height when adding newline after heading (reproducible on 7ceeadc) ![]() |
Test cases with screenshots from 7ceeadc:
|
Waiting for facebook/react-native#51344. |
Hi @tomekzaw |
Hi @rohit9625, yes, the PR facebook/react-native#51344 indeed was merged. However, this PR still needs some more work on it to address some minor issues like those reported in the comments above. |
So, are you working on them? Let me know if you need any help with that :) |
Someone from the Live Markdown team at Software Mansion will take care of it. |
Details
This PR adds
h1.lineHeight
tomarkdownStyle
. If not set,MarkdownTextInput
will use OS-default line height (appropriate toh1.fontSize
). If set, this will override OS-default line height.Looks like Codegen still doesn't have proper support for
Float | undefined
(and neither forFloat | null
) so I had to go with-1
as the default value.Closes #522.
Related Issues
#522
Expensify/App#52827 (comment)
Manual Tests
Linked PRs