AppFlowy/frontend/rust-lib/flowy-document2/tests/assets/json/notion.json
Kilu.He dc0af0f4c1
feat: support convert external data to nested json (#3848)
* feat: support convert external data to nested json

* fix: add some comment

* fix: code review

* fix: code review

* fix: code view

* fix: code view

* fix: update tauri cargo lock file

* fix: remove reduant function

* fix: parse dir attribute in element

* fix: add comment about parse dir

* fix: code review

* fix: code review

* fix: code review

* fix: code review
2023-11-02 22:13:29 +08:00

371 lines
7.1 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"type": "page",
"data": {},
"children": [
{
"type": "heading",
"data": {
"delta": [
{
"attributes": null,
"insert": "The Notion Document"
}
],
"level": 1
},
"children": []
},
{
"type": "heading",
"data": {
"level": 1,
"delta": [
{
"attributes": null,
"insert": "Heading-1"
}
]
},
"children": []
},
{
"type": "heading",
"data": {
"level": 2,
"delta": [
{
"attributes": null,
"insert": "Heading - 2"
}
]
},
"children": []
},
{
"type": "heading",
"data": {
"level": 3,
"delta": [
{
"attributes": null,
"insert": "Heading - 3"
}
]
},
"children": []
},
{
"type": "paragraph",
"data": {
"delta": [
{
"attributes": null,
"insert": "This is a paragraph"
}
]
},
"children": []
},
{
"type": "paragraph",
"data": {
"delta": [
{
"attributes": null,
"insert": "paragraphs child"
}
]
},
"children": []
},
{
"type": "bulleted_list",
"data": {
"delta": [
{
"attributes": null,
"insert": "This is a bulleted list - 1"
}
]
},
"children": [
{
"type": "bulleted_list",
"data": {
"delta": [
{
"attributes": null,
"insert": "This is a bulleted list - 1 - 1"
}
]
},
"children": []
}
]
},
{
"type": "bulleted_list",
"data": {
"delta": [
{
"attributes": null,
"insert": "This is a bulleted list - 2"
}
]
},
"children": []
},
{
"type": "paragraph",
"data": {
"delta": [
{
"attributes": null,
"insert": "This is a paragraph"
}
]
},
"children": []
},
{
"type": "bulleted_list",
"data": {
"delta": [
{
"attributes": null,
"insert": "[ ] This is a todo - 1"
}
]
},
"children": [
{
"type": "bulleted_list",
"data": {
"delta": [
{
"attributes": null,
"insert": "[ ] This is a paragraph - 1-1"
}
]
},
"children": []
}
]
},
{
"type": "numbered_list",
"data": {
"delta": [
{
"attributes": null,
"insert": "This is a numbered list -1"
}
]
},
"children": []
},
{
"type": "paragraph",
"data": {
"delta": [
{
"attributes": null,
"insert": "This is a paragraph"
}
]
},
"children": []
},
{
"type": "bulleted_list",
"data": {
"delta": [
{
"attributes": null,
"insert": "This is a toggle list"
}
]
},
"children": [
{
"type": "paragraph",
"data": {
"delta": [
{
"attributes": null,
"insert": "This is a toggle child"
}
]
},
"children": []
}
]
},
{
"type": "quote",
"data": {
"delta": [
{
"attributes": null,
"insert": "This is a quote"
}
]
},
"children": [
{
"type": "paragraph",
"data": {
"delta": [
{
"attributes": null,
"insert": "This is a quote child"
}
]
},
"children": []
}
]
},
{
"type": "paragraph",
"data": {
"delta": [
{
"attributes": null,
"insert": "This is a paragraph"
}
]
},
"children": []
},
{
"type": "divider",
"data": {},
"children": []
},
{
"type": "code",
"data": {
"delta": [
{
"attributes": null,
"insert": "// This is the main function.\nfn main() {\n // Print text to the console.\n **println**!(\"Hello World!\");\n}"
}
],
"language": "jsx"
},
"children": []
},
{
"type": "paragraph",
"data": {
"delta": [
{
"attributes": null,
"insert": "This is a paragraph"
}
]
},
"children": []
},
{
"type": "paragraph",
"data": {
"delta": [
{
"attributes": null,
"insert": "<aside>\n 💡 callout"
}
]
},
"children": []
},
{
"type": "paragraph",
"data": {
"delta": [
{
"attributes": null,
"insert": "</aside>"
}
]
},
"children": []
},
{
"type": "paragraph",
"data": {
"delta": [
{
"attributes": null,
"insert": "This is a paragraph font-color bg-color "
},
{
"attributes": {
"bold": true
},
"insert": "bold"
},
{
"attributes": {
"italic": true
},
"insert": "italic underline "
},
{
"attributes": {
"italic": true,
"strikethrough": true
},
"insert": "strike-through"
},
{
"attributes": {
"code": true,
"italic": true
},
"insert": "inline-code"
},
{
"attributes": {
"italic": true
},
"insert": " $inline-formula$ "
},
{
"attributes": {
"href": "https://www.notion.so/The-Notion-Document-d4236da306b84f6199e4091705042d78?pvs=21",
"italic": true
},
"insert": "link"
}
]
},
"children": []
},
{
"type": "paragraph",
"data": {
"delta": [
{
"attributes": null,
"insert": "$$\n |x| = \\begin{cases}\n x, &\\quad x \\geq 0 \\\\\n -x, &\\quad x < 0\n \\end{cases}\n $$"
}
]
},
"children": []
},
{
"type": "paragraph",
"data": {
"delta": [
{
"attributes": null,
"insert": "End"
}
]
},
"children": []
}
]
}