Skip to content

Instantly share code, notes, and snippets.

@erquhart
Last active June 29, 2017 18:35
Show Gist options
  • Save erquhart/72afed6fdf14fbf92f68d0f8ea163a88 to your computer and use it in GitHub Desktop.
Save erquhart/72afed6fdf14fbf92f68d0f8ea163a88 to your computer and use it in GitHub Desktop.
Sample nested list MDAST
{
"type": "root",
"children": [
{
"type": "list",
"ordered": false,
"start": null,
"loose": false,
"children": [
{
"type": "list",
"ordered": false,
"start": null,
"loose": false,
"children": [
{
"type": "listItem",
"loose": false,
"checked": null,
"children": [
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "test",
"position": {
"start": {
"line": 1,
"column": 13,
"offset": 12
},
"end": {
"line": 1,
"column": 17,
"offset": 16
}
}
}
]
}
],
"position": {
"start": {
"line": 1,
"column": 9,
"offset": 8
},
"end": {
"line": 1,
"column": 22,
"offset": 21
}
}
}
],
"position": {
"start": {
"line": 1,
"column": 5,
"offset": 4
},
"end": {
"line": 1,
"column": 27,
"offset": 26
}
}
}
],
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 32,
"offset": 31
}
}
}
],
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 32,
"offset": 31
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment