Comparison with Mobiledoc?

Hi marijnh,

Have you seen https://bustle.github.io/mobiledoc-kit/demo/?

The goals of mobiledoc appear to be very similar to ProseMirror. Would you be able to comment on any immediately-obvious differentiators? I’m hoping to use one of these libs in a project of mine.

thanks!

Seems like there’s no way to nest card within card when it comes to Mobiledoc?

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"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}

The goals of the two projects are indeed very similar, but the architecture/approach taken is quite different. So scan through the docs of both and see which style you prefer.