3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-18 22:25:44 +01:00

Read the inline text, and decode the escapes and references CommonMark spells (#33)

This commit is contained in:
2026-08-30 23:32:57 +02:00
parent 3a05357ea3
commit 5975d8d912
25 changed files with 729 additions and 110 deletions
@@ -0,0 +1,37 @@
{
"content": [
{
"content": [
{
"text": "© 2026 — the № you asked for, & nothing else.",
"type": "text"
}
],
"type": "paragraph"
},
{
"content": [
{
"text": "Escaped, the reference stays literal: © and ",
"type": "text"
},
{
"marks": [
{
"type": "code"
}
],
"text": "©",
"type": "text"
},
{
"text": " alike.",
"type": "text"
}
],
"type": "paragraph"
}
],
"type": "doc",
"version": 1
}
@@ -0,0 +1,3 @@
© 2026 — the № you asked for, & nothing else.
Escaped, the reference stays literal: \© and `©` alike.
+22
View File
@@ -0,0 +1,22 @@
{
"content": [
{
"content": [
{
"text": "A paragraph the author soft-wrapped across three lines, holding a hard break",
"type": "text"
},
{
"type": "hardBreak"
},
{
"text": "the backslash spells.",
"type": "text"
}
],
"type": "paragraph"
}
],
"type": "doc",
"version": 1
}
+3
View File
@@ -0,0 +1,3 @@
A paragraph the author soft-wrapped
across three lines, holding a hard break\
the backslash spells.