3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-21 15:42:58 +01:00

Model CommonMark's emphasis matching, and escape the delimiter that only closes

This commit is contained in:
2026-08-27 12:42:46 +02:00
parent e5c0c13633
commit 5063ad5fc2
17 changed files with 899 additions and 45 deletions
@@ -0,0 +1,87 @@
{
"content": [
{
"content": [
{
"text": "un",
"type": "text"
},
{
"marks": [
{
"type": "em"
}
],
"text": "a",
"type": "text"
},
{
"marks": [
{
"type": "em"
},
{
"type": "strong"
}
],
"text": "b",
"type": "text"
},
{
"marks": [
{
"type": "strong"
}
],
"text": "c",
"type": "text"
},
{
"text": "istic",
"type": "text"
}
],
"type": "paragraph"
},
{
"content": [
{
"marks": [
{
"type": "strong"
},
{
"type": "em"
}
],
"text": "a",
"type": "text"
},
{
"marks": [
{
"type": "strong"
}
],
"text": "b",
"type": "text"
},
{
"marks": [
{
"type": "strong"
},
{
"type": "em"
}
],
"text": "c",
"type": "text"
}
],
"type": "paragraph"
}
],
"type": "doc",
"version": 1
}