|
|
|
|
|
by Horusiath
1297 days ago
|
|
> semantic data-structures like rich-text or syntax trees is what's tricky and has unsolved challenges. Yrs developer here: - Yjs/Yrs have support for formatting attributes[1]. The matter if format attributes conflict resolution behaves as user desired is a subject to discussion (which is a common thing re. CRDTs and their trade offs), but its behaviour is consistent, convergent and algorithm itself works fast. This feature is in fact used in many rich text editors using Yjs bindings. - Embedding non-string elements in text is supported as well. - While syntax trees are not supported out of the box (AFAIK this CRDT is still being researched), Yjs also support XML nodes with attributes and nested children, which may be used for similar effects in some scenarios. [1] https://docs.yjs.dev/api/delta-format |
|