I learned specification: mobiledoc-kit. Is there any tool to convert markdown to this format?
I know that it can be converted following:
{
"version": "0.3.1",
"atoms": [],
"cards": [
[
"markdown",
{
"markdown": "# ok\n\n```json\n{\n ok: \"ok\"\n}\n```\n\n> xd\n \n<ul>\n <li>aa</li>\n <li>bb</li>\n</ul>\n\nTest"
}
]
],
"markups": [],
"sections": [
[
10,
0
],
[
1,
"p",
[]
]
]
}
I mean by one big card, but I would like to process markdown to mobiledoc-kit format in a more sophisticated way. I mean change # ok to heading, change json\n{\n ok: \"ok\"\n}\n
to card, and change list in HTML to mobiledoc-kit list. I would like to save also classes and attributes from HTML.
Why did I ask about it?
There is a well-known problem with using Grammarly and mobiledoc-editor. I have also other problems with this editor so I do not want to use it. But I want to use mobiledoc-kit format to save my posts created in ghost publishing platform. Creating one markdown card with teens thousand of characters make editor very hard to use.
I would like to use my own markdown editor and convert it to mobiledoc-kit format in an unequivocal way.
My propositions.
I was looking for that converter and did not found. So I see the following solutions.
- modbiledoc-kit team will create a tool for this conversion
- it would be possible with admin API v2
- we can stay with the format that I presented initially but the efficiency of an editor with markdown card containing for example 50k characters should be improved
- we make a possible selecting type of editor mobiledoc-kit or old markdown editor