0.0.12 • Published 11 months ago

@kerebron/extension-automerge v0.0.12

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

Kerebron extension for collaboration using automerge

Current state (WIP)

WARNING: this extension is currently broken.

Reasons:

I tried naive hacks but got stuck on tables support. The reason is a format of marks in document. Compare below 2 tables:

  1. Table with 2 rows, 1 cell each
<table>
  <tr>
    <th>1</th>
  </tr>
  <tr>
    <td>2</td>
  </tr>
</table>

Pseudocode of marks JSON structure:

[
  { "type": "th", "parents": ["table", "tr"] },
  { "text": "1" },
  { "type": "td", "parents": ["table", "tr"] },
  { "text": "2" }
]
  1. Table with 1 row, 2 cells
<table>
  <tr>
    <th>1</th>
    <td>2</td>
  </tr>
</table>

Pseudocode of marks JSON structure:

[
  { "type": "th", "parents": ["table", "tr"] },
  { "text": "1" },
  { "type": "td", "parents": ["table", "tr"] },
  { "text": "2" }
]

Currently, both tables produce same output which resulted in folding all tables into 1 row.

Description

Fork of https://github.com/automerge/automerge-prosemirror

Some internals of automerge-prosemirror are not exposed.

https://automerge.org/ https://automerge.org/blog/2023/11/06/automerge-repo/ https://automerge.org/docs/quickstart/

https://automerge.org/automerge/api-docs/js/ https://github.com/automerge/automerge-repo/tree/main/packages/automerge-repo/src

0.0.12

11 months ago

0.0.11

11 months ago

0.0.10

11 months ago

0.0.9

11 months ago

0.0.8

11 months ago

0.0.7

11 months ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago