@blocknote/core
Version:
A "Notion-style" block-based extensible text editor built on top of Prosemirror and Tiptap.
62 lines • 1.12 kB
JSON
[
{
"id": "1",
"type": "codeBlock",
"props": {
"language": "javascript"
},
"content": [
{
"type": "text",
"text": "console.log(\"Should default to JS\")",
"styles": {}
}
],
"children": []
},
{
"id": "2",
"type": "codeBlock",
"props": {
"language": "typescript"
},
"content": [
{
"type": "text",
"text": "console.log(\"Should parse TS from data-language\")",
"styles": {}
}
],
"children": []
},
{
"id": "3",
"type": "codeBlock",
"props": {
"language": "python"
},
"content": [
{
"type": "text",
"text": "print(\"Should parse Python from language- class\")",
"styles": {}
}
],
"children": []
},
{
"id": "4",
"type": "codeBlock",
"props": {
"language": "typescript"
},
"content": [
{
"type": "text",
"text": "console.log(\"Should prioritize TS from data-language over language- class\")",
"styles": {}
}
],
"children": []
}
]