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 newline issue in paragraphs #413

Merged
merged 1 commit into from
Feb 26, 2019
Merged

Fix newline issue in paragraphs #413

merged 1 commit into from
Feb 26, 2019

Conversation

johno
Copy link
Member

@johno johno commented Feb 26, 2019

In paragraph nodes newlines were being removed which causes
issues when there are two subsequent nodes like links, spans,
emphasis, bold, etc.

Now, if the parent node is a paragraph tag, we preserve the
newline since it's significant and results in a space that
separates two inline nodes on render.


Closes #412

@vercel vercel bot temporarily deployed to staging February 26, 2019 15:50 Inactive
@johno johno changed the title Implement failing test for #412 Fix newline issue in paragraphs Feb 26, 2019
In paragraph nodes newlines were being removed which causes
issues when there are two subsequent nodes like links, spans,
emphasis, bold, etc.

Now, if the parent node is a paragraph tag, we preserve the
newline since it's significant and results in a space that
separates two inline nodes on render.

---

Closes #412
@vercel vercel bot temporarily deployed to staging February 26, 2019 19:46 Inactive
@johno johno merged commit 23b1e94 into master Feb 26, 2019
@johno johno deleted the newline-to-space branch February 26, 2019 20:08
@kentcdodds
Copy link
Contributor

Thank you so much!

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

Successfully merging this pull request may close these issues.

3 participants