4.2: a link target's would-be directive escapes inside a directive's content
This commit is contained in:
@@ -0,0 +1,107 @@
|
||||
{
|
||||
"content": [
|
||||
{
|
||||
"content": [
|
||||
{
|
||||
"marks": [
|
||||
{
|
||||
"type": "underline"
|
||||
},
|
||||
{
|
||||
"attrs": {
|
||||
"href": ":a{"
|
||||
},
|
||||
"type": "link"
|
||||
}
|
||||
],
|
||||
"text": "x",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"type": "paragraph"
|
||||
},
|
||||
{
|
||||
"content": [
|
||||
{
|
||||
"marks": [
|
||||
{
|
||||
"type": "underline"
|
||||
},
|
||||
{
|
||||
"attrs": {
|
||||
"href": "y",
|
||||
"title": ":a{"
|
||||
},
|
||||
"type": "link"
|
||||
}
|
||||
],
|
||||
"text": "x",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"type": "paragraph"
|
||||
},
|
||||
{
|
||||
"content": [
|
||||
{
|
||||
"marks": [
|
||||
{
|
||||
"type": "underline"
|
||||
},
|
||||
{
|
||||
"attrs": {
|
||||
"href": ":a[]{"
|
||||
},
|
||||
"type": "link"
|
||||
}
|
||||
],
|
||||
"text": "x",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"type": "paragraph"
|
||||
},
|
||||
{
|
||||
"content": [
|
||||
{
|
||||
"marks": [
|
||||
{
|
||||
"type": "underline"
|
||||
},
|
||||
{
|
||||
"attrs": {
|
||||
"href": "https://example.com/?q=:emoji{"
|
||||
},
|
||||
"type": "link"
|
||||
}
|
||||
],
|
||||
"text": "x",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"type": "paragraph"
|
||||
},
|
||||
{
|
||||
"content": [
|
||||
{
|
||||
"marks": [
|
||||
{
|
||||
"type": "underline"
|
||||
},
|
||||
{
|
||||
"attrs": {
|
||||
"href": "ab:c{"
|
||||
},
|
||||
"type": "link"
|
||||
}
|
||||
],
|
||||
"text": "ab:c{",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"type": "paragraph"
|
||||
}
|
||||
],
|
||||
"type": "doc",
|
||||
"version": 1
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
:underline[[x](\:a{)]
|
||||
|
||||
:underline[[x](y "\:a{")]
|
||||
|
||||
:underline[[x](\:a[]{)]
|
||||
|
||||
:underline[[x](https://example.com/?q=\:emoji{)]
|
||||
|
||||
:underline[[ab\:c{](ab\:c{)]
|
||||
Reference in New Issue
Block a user