Refuse the pipe form where a link hides a pipe, and fall back to the directive form for every image CommonMark cannot spell
CI / gate (push) Successful in 5s

This commit is contained in:
2026-08-25 16:12:56 +02:00
parent 5be1bf677a
commit 0121a5f06e
14 changed files with 140 additions and 59 deletions
@@ -34,11 +34,29 @@
{
"content": [
{
"text": "Plain item.",
"type": "text"
"content": [
{
"attrs": {
"title": "Deeper still"
},
"content": [
{
"content": [
{
"text": "Two list levels down.",
"type": "text"
}
],
"type": "paragraph"
}
],
"type": "expand"
}
],
"type": "listItem"
}
],
"type": "paragraph"
"type": "bulletList"
}
],
"type": "listItem"
@@ -64,6 +82,23 @@
}
],
"type": "expand"
},
{
"attrs": {
"panelType": "note"
},
"content": [
{
"content": [
{
"text": "Superseded by the next run.",
"type": "text"
}
],
"type": "paragraph"
}
],
"type": "panel"
}
],
"type": "blockquote"
@@ -2,9 +2,15 @@
- :::panel warning
Check the torque before signing off.
:::
- Plain item.
- - :::expand {title="Deeper still"}
Two list levels down.
:::
> :::expand {title="Full build log"}
> The build ran for 11 minutes.
> :::
>
> :::panel note
> Superseded by the next run.
> :::
::::
@@ -82,6 +82,37 @@
}
],
"type": "mediaSingle"
},
{
"attrs": {
"layout": "center"
},
"content": [
{
"attrs": {
"alt": "",
"type": "external",
"url": "https://example.com/moon.png"
},
"type": "media"
}
],
"type": "mediaSingle"
},
{
"attrs": {
"layout": "center"
},
"content": [
{
"attrs": {
"type": "external",
"url": "https://example.com/plan.png?a=1&b=2"
},
"type": "media"
}
],
"type": "mediaSingle"
}
],
"type": "doc",
@@ -16,3 +16,11 @@ Taken from Kiruna.
:::mediaSingle {layout=center}
::media {alt="The assembly drawing" marks="[{\"attrs\":{\"href\":\"https://example.com/assembly\"},\"type\":\"link\"}]" type=external url="https://example.com/assembly.png"}
:::
:::mediaSingle {layout=center}
::media {alt="" type=external url="https://example.com/moon.png"}
:::
:::mediaSingle {layout=center}
::media {type=external url="https://example.com/plan.png?a=1&b=2"}
:::