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

Handle intersecting mutations #57

Merged
merged 2 commits into from
Apr 20, 2017
Merged

Handle intersecting mutations #57

merged 2 commits into from
Apr 20, 2017

Conversation

benbriggs
Copy link
Contributor

My stab at fixing #46.

Address styles that intersect with entities that have a prefix/suffix conversion strategy by splitting the style's mutation into two ranges - one inside the entity's tag, one outside. I also added some better naming to conditions in updateMutation to make it more readable.

Thanks to @liyantang for pushing the ball forward here and for the tests which I included in this PR. One of the ended up outputting a slightly different nesting order but I believe it should still be equivalent.

Ben Briggs added 2 commits April 9, 2017 14:43
…urn length of prefix or suffix. enhance updateMutation with more descriptive names of conditions and the ability to check for partially intersecting mutations where one is modified with a prefix/suffix, and splits the other mutation into two parts. add tests from @liyantang
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.

None yet

1 participant