Inlines

Text

Links are inline nodes to point the reader to an external website or another page.

{
"object": "inline",
"type": "link",
"data": {
"href": "https://www.google.fr"
// Or
"pageID": "..."
},
"nodes": [
{
"object": "text",
...
}
]
}

Void

Math

{
"object": "inline",
"type": "math",
"isVoid": true,
"data": {
"formula": "a = b + 1"
}
}

Emoji

Emojis are represented as inline void nodes with a code data parameter. This code should be the unicode code (you can find it on emojipedia.org).

{
"object": "inline",
"type": "emoji",
"isVoid": true,
"data": {
"code": "fe0f"
}
}