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

Fix text wrapping, links #23

Closed
wants to merge 3 commits into from

Conversation

zivester
Copy link

@zivester zivester commented Jan 19, 2019

Been working with this library for a couple weeks, and needed to fix a couple regressions that appeared in 1.2.0.

This brings back Utils.isTextOnly which was needed to get proper inline text wrapping. 1.20.0 had a regression where text only blocks, e.g.:

This is a text block **with bold** items that would wrap to three lines

Would render like:

This is a text block
with bold
items that would wrap to three lines

It now properly checks when rendering certain components, and if all children are of type Text, our wrapper should also be text.

I also removed the need for static class properties as it unnecessarily requires build tools that should not be required. I have a babel build version of this module, and plan on doing a rewrite in the future with typescript if there is any interest from the maintainer and/or community.

I believe this should fix #15, fix #18, fix #20

@juiceo
Copy link
Owner

juiceo commented Jan 31, 2019

Hey, thanks for the PR and apologies for my inactivity. Currently I personally have no use for this library so responding to these has been duly slow.

I would fully support you doing a rewrite of the library, and can happily transfer the npm package ownership to you. Hit me up via email at [email protected] if you're interested in taking over :)

@zivester
Copy link
Author

Sounds great @lappalj4, just sent you an email.

@zivester
Copy link
Author

I've released these fixes on the new app version which we now maintain v1.3.0 at https://github.com/TitanInvest/react-native-easy-markdown

Also installable with npm under this same package name.

@zivester zivester closed this Aug 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants