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

redraft merges disparate blocks into one #18

Closed
augustblack opened this issue Dec 1, 2016 · 1 comment
Closed

redraft merges disparate blocks into one #18

augustblack opened this issue Dec 1, 2016 · 1 comment

Comments

@augustblack
Copy link

augustblack commented Dec 1, 2016

it seems the redraft merges two blocks of the same type into one.

So a set of blocks with [ {type:"unstyled"}, {type:"unstyled"}] gets rendered with

<block><children1><children1></block>

instead of what I would expect:

<block1><children1></block1><block2><children2></block2>

Is that intentional?

I tried setting the options.cleanup.split=false, but it doesn't seem to have any effect.

@lokiuz
Copy link
Owner

lokiuz commented Dec 7, 2016

Sorry for late response.
Yes it's intentional. Still you can render each child by maping over the children in the block renderer. Checkout the unstyled example in readme.

@lokiuz lokiuz closed this as completed Dec 17, 2016
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

No branches or pull requests

2 participants