diff --git a/corpus/round-trip/block-nodes/block-marks.json b/corpus/round-trip/block-nodes/block-marks.json new file mode 100644 index 0000000..e30f90c --- /dev/null +++ b/corpus/round-trip/block-nodes/block-marks.json @@ -0,0 +1,39 @@ +{ + "content": [ + { + "attrs": { + "localId": "01a033d0-1393-790b-9d44-c572033ea4aa" + }, + "content": [ + { + "attrs": { + "width": 100 + }, + "content": [ + { + "content": [ + { + "text": "Full width.", + "type": "text" + } + ], + "type": "paragraph" + } + ], + "type": "layoutColumn" + } + ], + "marks": [ + { + "attrs": { + "mode": "wide" + }, + "type": "breakout" + } + ], + "type": "layoutSection" + } + ], + "type": "doc", + "version": 1 +} diff --git a/corpus/round-trip/block-nodes/block-marks.md b/corpus/round-trip/block-nodes/block-marks.md new file mode 100644 index 0000000..2264652 --- /dev/null +++ b/corpus/round-trip/block-nodes/block-marks.md @@ -0,0 +1,5 @@ +::::layoutSection {localId=01a033d0-1393-790b-9d44-c572033ea4aa marks="[{\"attrs\":{\"mode\":\"wide\"},\"type\":\"breakout\"}]"} +:::layoutColumn {width=100} +Full width. +::: +:::: diff --git a/corpus/round-trip/block-nodes/decision-list.json b/corpus/round-trip/block-nodes/decision-list.json new file mode 100644 index 0000000..41c94c7 --- /dev/null +++ b/corpus/round-trip/block-nodes/decision-list.json @@ -0,0 +1,40 @@ +{ + "content": [ + { + "attrs": { + "localId": "01a033c4-7aa0-723f-bd4b-018e0aa0103f" + }, + "content": [ + { + "attrs": { + "localId": "01a033c8-0df4-74df-a9f4-c2c4aa3cc2c1", + "state": "DECIDED" + }, + "content": [ + { + "text": "Ship on Friday.", + "type": "text" + } + ], + "type": "decisionItem" + }, + { + "attrs": { + "localId": "01a033cb-e13c-79b2-933f-b3cedd57e33e", + "state": "DECIDED" + }, + "content": [ + { + "text": "Keep the old endpoint for one release.", + "type": "text" + } + ], + "type": "decisionItem" + } + ], + "type": "decisionList" + } + ], + "type": "doc", + "version": 1 +} diff --git a/corpus/round-trip/block-nodes/decision-list.md b/corpus/round-trip/block-nodes/decision-list.md new file mode 100644 index 0000000..6019439 --- /dev/null +++ b/corpus/round-trip/block-nodes/decision-list.md @@ -0,0 +1,8 @@ +::::decisionList {localId=01a033c4-7aa0-723f-bd4b-018e0aa0103f} +:::decisionItem {localId=01a033c8-0df4-74df-a9f4-c2c4aa3cc2c1 state=DECIDED} +Ship on Friday. +::: +:::decisionItem {localId=01a033cb-e13c-79b2-933f-b3cedd57e33e state=DECIDED} +Keep the old endpoint for one release. +::: +:::: diff --git a/corpus/round-trip/block-nodes/expand.json b/corpus/round-trip/block-nodes/expand.json new file mode 100644 index 0000000..765428e --- /dev/null +++ b/corpus/round-trip/block-nodes/expand.json @@ -0,0 +1,50 @@ +{ + "content": [ + { + "attrs": { + "title": "Full build log" + }, + "content": [ + { + "content": [ + { + "text": "The build ran for 11 minutes.", + "type": "text" + } + ], + "type": "paragraph" + }, + { + "content": [ + { + "text": "Warnings: 3.", + "type": "text" + } + ], + "type": "paragraph" + } + ], + "type": "expand" + }, + { + "attrs": { + "localId": "01a03382-2ca7-745c-b85d-49b84d32cf99", + "title": "Torque values" + }, + "content": [ + { + "content": [ + { + "text": "Bolt M8: 25 Nm.", + "type": "text" + } + ], + "type": "paragraph" + } + ], + "type": "nestedExpand" + } + ], + "type": "doc", + "version": 1 +} diff --git a/corpus/round-trip/block-nodes/expand.md b/corpus/round-trip/block-nodes/expand.md new file mode 100644 index 0000000..05a2466 --- /dev/null +++ b/corpus/round-trip/block-nodes/expand.md @@ -0,0 +1,9 @@ +:::expand {title="Full build log"} +The build ran for 11 minutes. + +Warnings: 3. +::: + +:::nestedExpand {localId=01a03382-2ca7-745c-b85d-49b84d32cf99 title="Torque values"} +Bolt M8: 25 Nm. +::: diff --git a/corpus/round-trip/block-nodes/extension.json b/corpus/round-trip/block-nodes/extension.json new file mode 100644 index 0000000..6114751 --- /dev/null +++ b/corpus/round-trip/block-nodes/extension.json @@ -0,0 +1,76 @@ +{ + "content": [ + { + "attrs": { + "extensionKey": "toc", + "extensionType": "com.atlassian.confluence.macro.core", + "parameters": { + "maxLevel": 2, + "minLevel": 1 + }, + "text": "Table of contents" + }, + "type": "extension" + }, + { + "attrs": { + "extensionKey": "note", + "extensionType": "com.atlassian.confluence.macro.core", + "layout": "default", + "localId": "01a033d4-123e-70ec-9a9c-f55f189b3cf7" + }, + "content": [ + { + "content": [ + { + "text": "Handle with care.", + "type": "text" + } + ], + "type": "paragraph" + } + ], + "type": "bodiedExtension" + }, + { + "attrs": { + "extensionKey": "tabs", + "extensionType": "com.atlassian.confluence.macro.core", + "localId": "01a033de-845f-70e2-abcf-cd5d23ba6101" + }, + "content": [ + { + "content": [ + { + "content": [ + { + "text": "Tab one.", + "type": "text" + } + ], + "type": "paragraph" + } + ], + "type": "extensionFrame" + }, + { + "content": [ + { + "content": [ + { + "text": "Tab two.", + "type": "text" + } + ], + "type": "paragraph" + } + ], + "type": "extensionFrame" + } + ], + "type": "multiBodiedExtension" + } + ], + "type": "doc", + "version": 1 +} diff --git a/corpus/round-trip/block-nodes/extension.md b/corpus/round-trip/block-nodes/extension.md new file mode 100644 index 0000000..2df652c --- /dev/null +++ b/corpus/round-trip/block-nodes/extension.md @@ -0,0 +1,14 @@ +::extension {extensionKey=toc extensionType="com.atlassian.confluence.macro.core" parameters="{\"maxLevel\":2,\"minLevel\":1}" text="Table of contents"} + +:::bodiedExtension {extensionKey=note extensionType="com.atlassian.confluence.macro.core" layout=default localId=01a033d4-123e-70ec-9a9c-f55f189b3cf7} +Handle with care. +::: + +::::multiBodiedExtension {extensionKey=tabs extensionType="com.atlassian.confluence.macro.core" localId=01a033de-845f-70e2-abcf-cd5d23ba6101} +:::extensionFrame +Tab one. +::: +:::extensionFrame +Tab two. +::: +:::: diff --git a/corpus/round-trip/block-nodes/image-boundary.json b/corpus/round-trip/block-nodes/image-boundary.json new file mode 100644 index 0000000..15b2b86 --- /dev/null +++ b/corpus/round-trip/block-nodes/image-boundary.json @@ -0,0 +1,65 @@ +{ + "content": [ + { + "attrs": { + "layout": "center" + }, + "content": [ + { + "attrs": { + "alt": "The moon, at night.", + "type": "external", + "url": "https://example.com/moon.png" + }, + "type": "media" + }, + { + "content": [ + { + "text": "Taken from Kiruna.", + "type": "text" + } + ], + "type": "caption" + } + ], + "type": "mediaSingle" + }, + { + "attrs": { + "layout": "center", + "localId": "01a03394-6721-7075-bd6e-fd9a57b64b56" + }, + "content": [ + { + "attrs": { + "alt": "Torque chart", + "type": "external", + "url": "https://example.com/torque.png" + }, + "type": "media" + } + ], + "type": "mediaSingle" + }, + { + "attrs": { + "layout": "center" + }, + "content": [ + { + "attrs": { + "height": 480, + "type": "external", + "url": "https://example.com/plan.png", + "width": 640 + }, + "type": "media" + } + ], + "type": "mediaSingle" + } + ], + "type": "doc", + "version": 1 +} diff --git a/corpus/round-trip/block-nodes/image-boundary.md b/corpus/round-trip/block-nodes/image-boundary.md new file mode 100644 index 0000000..3148474 --- /dev/null +++ b/corpus/round-trip/block-nodes/image-boundary.md @@ -0,0 +1,14 @@ +::::mediaSingle {layout=center} +::media {alt="The moon, at night." type=external url="https://example.com/moon.png"} +:::caption +Taken from Kiruna. +::: +:::: + +:::mediaSingle {layout=center localId=01a03394-6721-7075-bd6e-fd9a57b64b56} +::media {alt="Torque chart" type=external url="https://example.com/torque.png"} +::: + +:::mediaSingle {layout=center} +::media {height=480 type=external url="https://example.com/plan.png" width=640} +::: diff --git a/corpus/round-trip/block-nodes/image.json b/corpus/round-trip/block-nodes/image.json new file mode 100644 index 0000000..c919e68 --- /dev/null +++ b/corpus/round-trip/block-nodes/image.json @@ -0,0 +1,31 @@ +{ + "content": [ + { + "content": [ + { + "text": "Taken from the roof last night.", + "type": "text" + } + ], + "type": "paragraph" + }, + { + "attrs": { + "layout": "center" + }, + "content": [ + { + "attrs": { + "alt": "The moon, at night.", + "type": "external", + "url": "https://example.com/moon.png" + }, + "type": "media" + } + ], + "type": "mediaSingle" + } + ], + "type": "doc", + "version": 1 +} diff --git a/corpus/round-trip/block-nodes/image.md b/corpus/round-trip/block-nodes/image.md new file mode 100644 index 0000000..9893c88 --- /dev/null +++ b/corpus/round-trip/block-nodes/image.md @@ -0,0 +1,3 @@ +Taken from the roof last night. + +![The moon, at night.](https://example.com/moon.png) diff --git a/corpus/round-trip/block-nodes/layout.json b/corpus/round-trip/block-nodes/layout.json new file mode 100644 index 0000000..7e50794 --- /dev/null +++ b/corpus/round-trip/block-nodes/layout.json @@ -0,0 +1,49 @@ +{ + "content": [ + { + "attrs": { + "localId": "01a033cc-4b60-7b5e-85f4-34f27f039e9a" + }, + "content": [ + { + "attrs": { + "width": 50 + }, + "content": [ + { + "content": [ + { + "text": "Left.", + "type": "text" + } + ], + "type": "paragraph" + } + ], + "type": "layoutColumn" + }, + { + "attrs": { + "valign": "top", + "width": 50 + }, + "content": [ + { + "content": [ + { + "text": "Right.", + "type": "text" + } + ], + "type": "paragraph" + } + ], + "type": "layoutColumn" + } + ], + "type": "layoutSection" + } + ], + "type": "doc", + "version": 1 +} diff --git a/corpus/round-trip/block-nodes/layout.md b/corpus/round-trip/block-nodes/layout.md new file mode 100644 index 0000000..fa83e92 --- /dev/null +++ b/corpus/round-trip/block-nodes/layout.md @@ -0,0 +1,8 @@ +::::layoutSection {localId=01a033cc-4b60-7b5e-85f4-34f27f039e9a} +:::layoutColumn {width=50} +Left. +::: +:::layoutColumn {valign=top width=50} +Right. +::: +:::: diff --git a/corpus/round-trip/block-nodes/media-group.json b/corpus/round-trip/block-nodes/media-group.json new file mode 100644 index 0000000..6d1f8da --- /dev/null +++ b/corpus/round-trip/block-nodes/media-group.json @@ -0,0 +1,28 @@ +{ + "content": [ + { + "content": [ + { + "attrs": { + "collection": "contentId-98237", + "id": "01a03387-e300-7bcf-9a41-c27760696449", + "occurrenceKey": "01a0338a-2f44-764f-a7b7-1c1a2abbb49b", + "type": "file" + }, + "type": "media" + }, + { + "attrs": { + "collection": "contentId-98237", + "id": "01a03393-0b0b-71f6-89cd-dd654f42cf34", + "type": "link" + }, + "type": "media" + } + ], + "type": "mediaGroup" + } + ], + "type": "doc", + "version": 1 +} diff --git a/corpus/round-trip/block-nodes/media-group.md b/corpus/round-trip/block-nodes/media-group.md new file mode 100644 index 0000000..6b90feb --- /dev/null +++ b/corpus/round-trip/block-nodes/media-group.md @@ -0,0 +1,4 @@ +:::mediaGroup +::media {collection=contentId-98237 id=01a03387-e300-7bcf-9a41-c27760696449 occurrenceKey=01a0338a-2f44-764f-a7b7-1c1a2abbb49b type=file} +::media {collection=contentId-98237 id=01a03393-0b0b-71f6-89cd-dd654f42cf34 type=link} +::: diff --git a/corpus/round-trip/block-nodes/media-single.json b/corpus/round-trip/block-nodes/media-single.json new file mode 100644 index 0000000..b9275ab --- /dev/null +++ b/corpus/round-trip/block-nodes/media-single.json @@ -0,0 +1,52 @@ +{ + "content": [ + { + "attrs": { + "layout": "center", + "width": 50 + }, + "content": [ + { + "attrs": { + "collection": "MediaServicesSample", + "id": "4478e39c-cf9b-41d1-ba92-68589487cd75", + "type": "file" + }, + "type": "media" + }, + { + "content": [ + { + "text": "The moon, at night.", + "type": "text" + } + ], + "type": "caption" + } + ], + "type": "mediaSingle" + }, + { + "attrs": { + "layout": "wrap-right", + "width": 33.33, + "widthType": "percentage" + }, + "content": [ + { + "attrs": { + "alt": "Torque chart", + "height": 480, + "type": "external", + "url": "https://example.com/torque.png", + "width": 640 + }, + "type": "media" + } + ], + "type": "mediaSingle" + } + ], + "type": "doc", + "version": 1 +} diff --git a/corpus/round-trip/block-nodes/media-single.md b/corpus/round-trip/block-nodes/media-single.md new file mode 100644 index 0000000..999543b --- /dev/null +++ b/corpus/round-trip/block-nodes/media-single.md @@ -0,0 +1,10 @@ +::::mediaSingle {layout=center width=50} +::media {collection=MediaServicesSample id=4478e39c-cf9b-41d1-ba92-68589487cd75 type=file} +:::caption +The moon, at night. +::: +:::: + +:::mediaSingle {layout=wrap-right width="33.33" widthType=percentage} +::media {alt="Torque chart" height=480 type=external url="https://example.com/torque.png" width=640} +::: diff --git a/corpus/round-trip/block-nodes/nested-fences.json b/corpus/round-trip/block-nodes/nested-fences.json new file mode 100644 index 0000000..c4326a9 --- /dev/null +++ b/corpus/round-trip/block-nodes/nested-fences.json @@ -0,0 +1,55 @@ +{ + "content": [ + { + "content": [ + { + "content": [ + { + "content": [ + { + "attrs": { + "title": "Torque values" + }, + "content": [ + { + "content": [ + { + "text": "Bolt M8: 25 Nm.", + "type": "text" + } + ], + "type": "paragraph" + } + ], + "type": "nestedExpand" + } + ], + "type": "tableCell" + }, + { + "content": [ + { + "attrs": { + "language": "text" + }, + "content": [ + { + "text": ":::::::panel warning\n:::", + "type": "text" + } + ], + "type": "codeBlock" + } + ], + "type": "tableCell" + } + ], + "type": "tableRow" + } + ], + "type": "table" + } + ], + "type": "doc", + "version": 1 +} diff --git a/corpus/round-trip/block-nodes/nested-fences.md b/corpus/round-trip/block-nodes/nested-fences.md new file mode 100644 index 0000000..e63e6a2 --- /dev/null +++ b/corpus/round-trip/block-nodes/nested-fences.md @@ -0,0 +1,15 @@ +::::::table +:::::tableRow +::::tableCell +:::nestedExpand {title="Torque values"} +Bolt M8: 25 Nm. +::: +:::: +:::tableCell +```text +:::::::panel warning +::: +``` +::: +::::: +:::::: diff --git a/corpus/round-trip/block-nodes/panel.json b/corpus/round-trip/block-nodes/panel.json new file mode 100644 index 0000000..5e55386 --- /dev/null +++ b/corpus/round-trip/block-nodes/panel.json @@ -0,0 +1,62 @@ +{ + "content": [ + { + "attrs": { + "panelType": "warning" + }, + "content": [ + { + "content": [ + { + "text": "Check the collation before importing.", + "type": "text" + } + ], + "type": "paragraph" + } + ], + "type": "panel" + }, + { + "attrs": { + "localId": "01a0337c-561a-75aa-b629-3801f68839ad", + "panelType": "info" + }, + "content": [ + { + "content": [ + { + "text": "Backups run at 02:00.", + "type": "text" + } + ], + "type": "paragraph" + } + ], + "type": "panel" + }, + { + "attrs": { + "panelColor": "#c9372c", + "panelIcon": ":rainbow:", + "panelIconId": "1f308", + "panelIconText": "🌈", + "panelType": "custom" + }, + "content": [ + { + "content": [ + { + "text": "Weather permitting.", + "type": "text" + } + ], + "type": "paragraph" + } + ], + "type": "panel" + } + ], + "type": "doc", + "version": 1 +} diff --git a/corpus/round-trip/block-nodes/panel.md b/corpus/round-trip/block-nodes/panel.md new file mode 100644 index 0000000..35283fa --- /dev/null +++ b/corpus/round-trip/block-nodes/panel.md @@ -0,0 +1,11 @@ +:::panel warning +Check the collation before importing. +::: + +:::panel info {localId=01a0337c-561a-75aa-b629-3801f68839ad} +Backups run at 02:00. +::: + +:::panel custom {panelColor="#c9372c" panelIcon=":rainbow:" panelIconId=1f308 panelIconText="🌈"} +Weather permitting. +::: diff --git a/corpus/round-trip/block-nodes/sync-block.json b/corpus/round-trip/block-nodes/sync-block.json new file mode 100644 index 0000000..c2da799 --- /dev/null +++ b/corpus/round-trip/block-nodes/sync-block.json @@ -0,0 +1,31 @@ +{ + "content": [ + { + "attrs": { + "localId": "0198f3a2-af74-7e91-b26c-70b15f4d9ec3", + "resourceId": "ari:cloud:confluence:site/page/123" + }, + "type": "syncBlock" + }, + { + "attrs": { + "localId": "01a033df-0dee-7251-a710-98e76dc285e4", + "resourceId": "ari:cloud:confluence:site/page/456" + }, + "content": [ + { + "content": [ + { + "text": "Shared release notes.", + "type": "text" + } + ], + "type": "paragraph" + } + ], + "type": "bodiedSyncBlock" + } + ], + "type": "doc", + "version": 1 +} diff --git a/corpus/round-trip/block-nodes/sync-block.md b/corpus/round-trip/block-nodes/sync-block.md new file mode 100644 index 0000000..23e04b5 --- /dev/null +++ b/corpus/round-trip/block-nodes/sync-block.md @@ -0,0 +1,5 @@ +::syncBlock {localId=0198f3a2-af74-7e91-b26c-70b15f4d9ec3 resourceId="ari:cloud:confluence:site/page/123"} + +:::bodiedSyncBlock {localId=01a033df-0dee-7251-a710-98e76dc285e4 resourceId="ari:cloud:confluence:site/page/456"} +Shared release notes. +::: diff --git a/corpus/round-trip/block-nodes/table-directive.json b/corpus/round-trip/block-nodes/table-directive.json new file mode 100644 index 0000000..bcfa4d5 --- /dev/null +++ b/corpus/round-trip/block-nodes/table-directive.json @@ -0,0 +1,85 @@ +{ + "content": [ + { + "attrs": { + "isNumberColumnEnabled": true, + "layout": "default", + "localId": "01a0339e-c34f-7658-9d98-eb059401b7ab", + "width": 760 + }, + "content": [ + { + "content": [ + { + "attrs": { + "colspan": 2, + "colwidth": [ + 340, + 420 + ] + }, + "content": [ + { + "content": [ + { + "text": "Assembly", + "type": "text" + } + ], + "type": "paragraph" + } + ], + "type": "tableHeader" + } + ], + "type": "tableRow" + }, + { + "attrs": { + "localId": "01a033a9-d034-7466-b916-68643be958ff" + }, + "content": [ + { + "attrs": { + "background": "#deebff" + }, + "content": [ + { + "content": [ + { + "text": "Bolt M8", + "type": "text" + } + ], + "type": "paragraph" + } + ], + "type": "tableCell" + }, + { + "attrs": { + "valign": "top" + }, + "content": [ + { + "content": [ + { + "text": "40", + "type": "text" + } + ], + "type": "paragraph" + } + ], + "type": "tableCell" + } + ], + "type": "tableRow" + } + ], + "type": "table" + } + ], + "type": "doc", + "version": 1 +} diff --git a/corpus/round-trip/block-nodes/table-directive.md b/corpus/round-trip/block-nodes/table-directive.md new file mode 100644 index 0000000..59408b2 --- /dev/null +++ b/corpus/round-trip/block-nodes/table-directive.md @@ -0,0 +1,15 @@ +:::::table {isNumberColumnEnabled=true layout=default localId=01a0339e-c34f-7658-9d98-eb059401b7ab width=760} +::::tableRow +:::tableHeader {colspan=2 colwidth="[340,420]"} +Assembly +::: +:::: +::::tableRow {localId=01a033a9-d034-7466-b916-68643be958ff} +:::tableCell {background="#deebff"} +Bolt M8 +::: +:::tableCell {valign=top} +40 +::: +:::: +::::: diff --git a/corpus/round-trip/block-nodes/table-pipe-boundary.json b/corpus/round-trip/block-nodes/table-pipe-boundary.json new file mode 100644 index 0000000..96f1c2d --- /dev/null +++ b/corpus/round-trip/block-nodes/table-pipe-boundary.json @@ -0,0 +1,82 @@ +{ + "content": [ + { + "content": [ + { + "content": [ + { + "content": [ + { + "content": [ + { + "text": "Pattern", + "type": "text" + } + ], + "type": "paragraph" + } + ], + "type": "tableHeader" + }, + { + "content": [ + { + "content": [ + { + "text": "Meaning", + "type": "text" + } + ], + "type": "paragraph" + } + ], + "type": "tableHeader" + } + ], + "type": "tableRow" + }, + { + "content": [ + { + "content": [ + { + "content": [ + { + "marks": [ + { + "type": "code" + } + ], + "text": "a|b", + "type": "text" + } + ], + "type": "paragraph" + } + ], + "type": "tableCell" + }, + { + "content": [ + { + "content": [ + { + "text": "Either a or b", + "type": "text" + } + ], + "type": "paragraph" + } + ], + "type": "tableCell" + } + ], + "type": "tableRow" + } + ], + "type": "table" + } + ], + "type": "doc", + "version": 1 +} diff --git a/corpus/round-trip/block-nodes/table-pipe-boundary.md b/corpus/round-trip/block-nodes/table-pipe-boundary.md new file mode 100644 index 0000000..1cab3b5 --- /dev/null +++ b/corpus/round-trip/block-nodes/table-pipe-boundary.md @@ -0,0 +1,18 @@ +:::::table +::::tableRow +:::tableHeader +Pattern +::: +:::tableHeader +Meaning +::: +:::: +::::tableRow +:::tableCell +`a|b` +::: +:::tableCell +Either a or b +::: +:::: +::::: diff --git a/corpus/round-trip/block-nodes/table-pipe.json b/corpus/round-trip/block-nodes/table-pipe.json new file mode 100644 index 0000000..515cad6 --- /dev/null +++ b/corpus/round-trip/block-nodes/table-pipe.json @@ -0,0 +1,177 @@ +{ + "content": [ + { + "content": [ + { + "content": [ + { + "content": [ + { + "content": [ + { + "text": "Part", + "type": "text" + } + ], + "type": "paragraph" + } + ], + "type": "tableHeader" + }, + { + "content": [ + { + "content": [ + { + "text": "Note", + "type": "text" + } + ], + "type": "paragraph" + } + ], + "type": "tableHeader" + } + ], + "type": "tableRow" + }, + { + "content": [ + { + "content": [ + { + "content": [ + { + "text": "Bolt M8", + "type": "text" + } + ], + "type": "paragraph" + } + ], + "type": "tableCell" + }, + { + "content": [ + { + "content": [ + { + "text": "Grade 8.8", + "type": "text" + } + ], + "type": "paragraph" + } + ], + "type": "tableCell" + } + ], + "type": "tableRow" + }, + { + "content": [ + { + "content": [ + { + "content": [ + { + "text": "Nut | washer", + "type": "text" + } + ], + "type": "paragraph" + } + ], + "type": "tableCell" + }, + { + "content": [ + { + "content": [ + { + "text": "Sold as a pair", + "type": "text" + } + ], + "type": "paragraph" + } + ], + "type": "tableCell" + } + ], + "type": "tableRow" + }, + { + "content": [ + { + "content": [ + { + "content": [ + { + "text": "Washer M8", + "type": "text" + } + ], + "type": "paragraph" + } + ], + "type": "tableCell" + }, + { + "content": [ + { + "content": [ + { + "text": "100 pcs", + "type": "text" + }, + { + "type": "hardBreak" + }, + { + "text": "zinc-plated", + "type": "text" + } + ], + "type": "paragraph" + } + ], + "type": "tableCell" + } + ], + "type": "tableRow" + }, + { + "content": [ + { + "content": [ + { + "content": [ + { + "text": "Spare", + "type": "text" + } + ], + "type": "paragraph" + } + ], + "type": "tableCell" + }, + { + "content": [ + { + "type": "paragraph" + } + ], + "type": "tableCell" + } + ], + "type": "tableRow" + } + ], + "type": "table" + } + ], + "type": "doc", + "version": 1 +} diff --git a/corpus/round-trip/block-nodes/table-pipe.md b/corpus/round-trip/block-nodes/table-pipe.md new file mode 100644 index 0000000..5d04f78 --- /dev/null +++ b/corpus/round-trip/block-nodes/table-pipe.md @@ -0,0 +1,6 @@ +| Part | Note | +| --- | --- | +| Bolt M8 | Grade 8.8 | +| Nut \| washer | Sold as a pair | +| Washer M8 | 100 pcs:hardBreak{}zinc-plated | +| Spare | | diff --git a/corpus/round-trip/block-nodes/task-list.json b/corpus/round-trip/block-nodes/task-list.json new file mode 100644 index 0000000..b0a148f --- /dev/null +++ b/corpus/round-trip/block-nodes/task-list.json @@ -0,0 +1,88 @@ +{ + "content": [ + { + "attrs": { + "localId": "0198f3a2-7c41-7f2e-9b3a-4d8e2c1a6b90" + }, + "content": [ + { + "attrs": { + "localId": "0198f3a2-8d52-70b1-8c4f-5e9f3d2b7ca1", + "state": "DONE" + }, + "content": [ + { + "text": "Write the spec", + "type": "text" + } + ], + "type": "taskItem" + }, + { + "attrs": { + "localId": "0198f3a2-9e63-7d80-a15b-6fa04e3c8db2", + "state": "TODO" + }, + "content": [ + { + "text": "Ship it", + "type": "text" + } + ], + "type": "taskItem" + }, + { + "attrs": { + "localId": "01a033b2-95c8-7d62-9b9c-dee7ad510982", + "state": "TODO" + }, + "content": [ + { + "content": [ + { + "text": "Check the torque.", + "type": "text" + } + ], + "type": "paragraph" + }, + { + "content": [ + { + "text": "Then sign off.", + "type": "text" + } + ], + "type": "paragraph" + } + ], + "type": "blockTaskItem" + }, + { + "attrs": { + "localId": "01a033b3-d1fa-7489-8c9f-f5846d2c249d" + }, + "content": [ + { + "attrs": { + "localId": "01a033bd-a22d-7fb5-be9d-89d1aa261112", + "state": "TODO" + }, + "content": [ + { + "text": "Nested step", + "type": "text" + } + ], + "type": "taskItem" + } + ], + "type": "taskList" + } + ], + "type": "taskList" + } + ], + "type": "doc", + "version": 1 +} diff --git a/corpus/round-trip/block-nodes/task-list.md b/corpus/round-trip/block-nodes/task-list.md new file mode 100644 index 0000000..e4f3f22 --- /dev/null +++ b/corpus/round-trip/block-nodes/task-list.md @@ -0,0 +1,18 @@ +:::::taskList {localId=0198f3a2-7c41-7f2e-9b3a-4d8e2c1a6b90} +:::taskItem DONE {localId=0198f3a2-8d52-70b1-8c4f-5e9f3d2b7ca1} +Write the spec +::: +:::taskItem TODO {localId=0198f3a2-9e63-7d80-a15b-6fa04e3c8db2} +Ship it +::: +:::blockTaskItem TODO {localId=01a033b2-95c8-7d62-9b9c-dee7ad510982} +Check the torque. + +Then sign off. +::: +::::taskList {localId=01a033b3-d1fa-7489-8c9f-f5846d2c249d} +:::taskItem TODO {localId=01a033bd-a22d-7fb5-be9d-89d1aa261112} +Nested step +::: +:::: +:::::