1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-18 22:24:38 +01:00
Renaud Chaput de4c9e478a Lint JSON, CSS and Markdown files with Prettier (#1612)
* Process and Lint CSS, Markdown and JSON files with Prettier

* Run `yarn prettier` to re-format Markdown, CSS and JSON files
2018-02-07 07:58:41 -08:00

81 lines
1.8 KiB
JSON

{
"document": {
"nodes": [
{
"object": "block",
"type": "paragraph",
"nodes": [
{
"object": "text",
"leaves": [
{
"text": "These two editors are kept "
},
{
"text": "in sync",
"marks": [
{
"type": "bold"
}
]
},
{
"text": " with one another as you type!"
}
]
}
]
},
{
"object": "block",
"type": "paragraph",
"nodes": [
{
"object": "text",
"leaves": [
{
"text":
"They achieve this by sending any document-altering operations to each other whenever a change occurs, and then applying them locally with "
},
{
"text": "change.applyOperations()",
"marks": [
{
"type": "code"
}
]
},
{
"text": "."
}
]
}
]
},
{
"object": "block",
"type": "paragraph",
"nodes": [
{
"object": "text",
"leaves": [
{
"text": "Note: ",
"marks": [
{
"type": "italic"
}
]
},
{
"text":
"this example doesn't showcase operational transforms or network communication, which are required for realtime editing with multiple people at once."
}
]
}
]
}
]
}
}