mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-03-06 05:49:47 +01:00
* Process and Lint CSS, Markdown and JSON files with Prettier * Run `yarn prettier` to re-format Markdown, CSS and JSON files
72 lines
1.6 KiB
JSON
72 lines
1.6 KiB
JSON
{
|
|
"document": {
|
|
"nodes": [
|
|
{
|
|
"object": "block",
|
|
"type": "paragraph",
|
|
"nodes": [
|
|
{
|
|
"object": "text",
|
|
"leaves": [
|
|
{
|
|
"text":
|
|
"This example shows how you can make a hovering menu appear above your content, which you can use to make text "
|
|
},
|
|
{
|
|
"text": "bold",
|
|
"marks": [
|
|
{
|
|
"type": "bold"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"text": ", "
|
|
},
|
|
{
|
|
"text": "italic",
|
|
"marks": [
|
|
{
|
|
"type": "italic"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"text": ", or anything else you might want to do!"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"object": "block",
|
|
"type": "paragraph",
|
|
"nodes": [
|
|
{
|
|
"object": "text",
|
|
"leaves": [
|
|
{
|
|
"text": "Try it out yourself! Just "
|
|
},
|
|
{
|
|
"text": "select any piece of text and the menu will appear",
|
|
"marks": [
|
|
{
|
|
"type": "bold"
|
|
},
|
|
{
|
|
"type": "italic"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"text": "."
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|