3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-12 11:48:29 +01:00

Answer architecture round 1: the node table says a hard break takes no marks, and a link text of hard breaks alone reads as its destination

This commit is contained in:
2026-10-09 11:04:30 +02:00
committed by Lillem4n
parent 32bee5ab91
commit 2ca5ac41e6
16 changed files with 185 additions and 34 deletions
@@ -0,0 +1,64 @@
{
"content": [
{
"content": [
{
"marks": [
{
"type": "em"
}
],
"text": "One",
"type": "text"
},
{
"type": "hardBreak"
},
{
"marks": [
{
"type": "em"
}
],
"text": "Two",
"type": "text"
}
],
"type": "paragraph"
},
{
"content": [
{
"marks": [
{
"attrs": {
"href": "/u"
},
"type": "link"
}
],
"text": "Three",
"type": "text"
},
{
"type": "hardBreak"
},
{
"marks": [
{
"attrs": {
"href": "/u"
},
"type": "link"
}
],
"text": "Four",
"type": "text"
}
],
"type": "paragraph"
}
],
"type": "doc",
"version": 1
}
@@ -0,0 +1,5 @@
*One\
Two*
[Three
Four](/u)
@@ -0,0 +1,37 @@
{
"content": [
{
"content": [
{
"marks": [
{
"type": "em"
}
],
"text": "One",
"type": "text"
},
{
"marks": [
{
"type": "em"
}
],
"type": "hardBreak"
},
{
"marks": [
{
"type": "em"
}
],
"text": "Two",
"type": "text"
}
],
"type": "paragraph"
}
],
"type": "doc",
"version": 1
}
@@ -0,0 +1 @@
_One_!adf:carry{json="{\"marks\":[{\"type\":\"em\"}],\"type\":\"hardBreak\"}"}_Two_