HHogg / remarkable-react

A configurable React component renderer for Remarkable.
MIT License
50 stars 8 forks source link

Single newlines are skipped #25

Closed SReichelt closed 4 years ago

SReichelt commented 4 years ago

If the markdown text contains a single newline character, the two lines are joined without any space in between. E.g.

Some
text

results in "Sometext" instead of "Some text".

I believe this is a combination of two factors:

I think the easiest fix might be to output an additional space in between all React children.

HHogg commented 4 years ago

Hey @SReichelt thanks for logging the issue. You are right that this renderer doesn't match the default rendered of Remarkable. #34 fixes the issue and I think shouldn't affect the previous rendered behaviour.

HHogg commented 4 years ago

:tada: This issue has been resolved in version 1.4.3 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

SReichelt commented 4 years ago

Works great, thank you very much!