editor-js / editor-js/document-model

Revise inline fragments normalization

Open
#53 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
12
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Currently inline fragments are merged in case two neighbouring fragments:
1. are from the same tool
2. the second fragment starts at index where the first one ends

How it should work ideally:
1. Two fragments in the fragments array are from the same tool
2. The second fragment starts at index where the first one ends

Naive solution would be O(n^2), we should think of more efficient solution

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.