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

Customize line height for headings #535

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

tomekzaw
Copy link
Collaborator

@tomekzaw tomekzaw commented Nov 5, 2024

Details

This PR adds h1.lineHeight to markdownStyle. If not set, MarkdownTextInput will use OS-default line height (appropriate to h1.fontSize). If set, this will override OS-default line height.

Looks like Codegen still doesn't have proper support for Float | undefined (and neither for Float | null) so I had to go with -1 as the default value.

Closes #522.

Related Issues

#522

Manual Tests

Linked PRs

@tomekzaw
Copy link
Collaborator Author

tomekzaw commented Nov 5, 2024

TODO: check markdownStyle={{ h1: { lineHeight: undefined }}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Simplify MarkdownLineHeightSpan logic
1 participant