Skip to content

Bug in json-patch-ot transforming multiple equal str_ins #941

@atsjo

Description

@atsjo

When transforming changes in markdown a typical scenario is completing task lists.

  • task

to

  • task

When transforming multiple edits to this we typically end up with

- [xx]

since equal str_ins operation are not merged into one.
It also seems more correct to merge equal inserts at the same position.

I prepared a PR fixing this: #955

NB: all tests pass, the formatting errors stems from lots of places not changed in the PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions