mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-03-06 13:59:47 +01:00
* Process and Lint CSS, Markdown and JSON files with Prettier * Run `yarn prettier` to re-format Markdown, CSS and JSON files
109 lines
2.3 KiB
JSON
109 lines
2.3 KiB
JSON
{
|
|
"document": {
|
|
"nodes": [
|
|
{
|
|
"object": "block",
|
|
"type": "paragraph",
|
|
"nodes": [
|
|
{
|
|
"object": "text",
|
|
"leaves": [
|
|
{
|
|
"text": "This is editable "
|
|
},
|
|
{
|
|
"text": "rich",
|
|
"marks": [
|
|
{
|
|
"type": "bold"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"text": " text, "
|
|
},
|
|
{
|
|
"text": "much",
|
|
"marks": [
|
|
{
|
|
"type": "italic"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"text": " better than a "
|
|
},
|
|
{
|
|
"text": "<textarea>",
|
|
"marks": [
|
|
{
|
|
"type": "code"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"text": "!"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"object": "block",
|
|
"type": "paragraph",
|
|
"nodes": [
|
|
{
|
|
"object": "text",
|
|
"leaves": [
|
|
{
|
|
"text":
|
|
"Since it's rich text, you can do things like turn a selection of text "
|
|
},
|
|
{
|
|
"text": "bold",
|
|
"marks": [
|
|
{
|
|
"type": "bold"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"text":
|
|
", or add a semantically rendered block quote in the middle of the page, like this:"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"object": "block",
|
|
"type": "block-quote",
|
|
"nodes": [
|
|
{
|
|
"object": "text",
|
|
"leaves": [
|
|
{
|
|
"text": "A wise quote."
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"object": "block",
|
|
"type": "paragraph",
|
|
"nodes": [
|
|
{
|
|
"object": "text",
|
|
"leaves": [
|
|
{
|
|
"text": "Try it out for yourself!"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|