We looked at both Prosemirror and MobileDoc and what sealed the deal for me was the human readability/grokability of the Prosemirror document format, that being said they do seem to be conceptually very similar and the folks at Bustle have been dog-fooding MobileDocKit for a good long while.
{
"version": "0.3.1",
"atoms": [],
"cards": [],
"markups": [
[
"strong"
],
[
"em"
]
],
"sections": [
[
1,
"p",
[
[
0,
[
0,
1
],
2,
"a strong/em paragraph"
]
]
],
[
3,
"ol",
[
[
[
0,
[],
0,
"a numeric list item with "
],
[
0,
[
1
],
1,
"some italics"
]
]
]
]
]
}
vs
{
"type": "doc",
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"marks": [
{
"type": "em"
},
{
"type": "strong"
}
],
"text": "a strong/em paragraph"
}
]
},
{
"type": "ordered_list",
"attrs": {
"order": 1
},
"content": [
{
"type": "list_item",
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "a numeric list item with "
},
{
"type": "text",
"marks": [
{
"type": "em"
}
],
"text": "some italics"
}
]
}
]
}
]
}
]
}