Skip to content

Instantly share code, notes, and snippets.

@ggrossetie
Created October 15, 2025 09:43
Show Gist options
  • Save ggrossetie/4ec53ec171980a8702aa6ddeda8fac18 to your computer and use it in GitHub Desktop.
Save ggrossetie/4ec53ec171980a8702aa6ddeda8fac18 to your computer and use it in GitHub Desktop.
AsciiDoc mutation
[
{
"type": "attributes",
"removedNodes": [],
"addedNodes": [],
"oldValue": "body",
"attributeName": "value",
"target": inlineObjectRef
},
{
"type": "attributes",
"removedNodes": [],
"addedNodes": [],
"oldValue": [
{
"line": 3,
"col": 1
},
{
"line": 3,
"col": 4
}
],
"attributeName": "location",
"target": inlineObjectRef
}
]

Document Title

body

{
"type": "block",
"name": "document",
"header": {
"title": [
{
"name": "text",
"type": "string",
"value": "Document Title",
"location": [
{
"line": 1,
"col": 3
},
{
"line": 1,
"col": 16
}
]
}
]
},
"blocks": [
{
"type": "block",
"name": "paragraph",
"form": "paragraph",
"inlines": [
{
"name": "text",
"type": "string",
"value": "body",
"location": [
{
"line": 3,
"col": 1
},
{
"line": 3,
"col": 4
}
]
}
]
}
]
}

Document Title

bodyy

{
"type": "block",
"name": "document",
"header": {
"title": [
{
"name": "text",
"type": "string",
"value": "Document Title",
"location": [
{
"line": 1,
"col": 3
},
{
"line": 1,
"col": 16
}
]
}
]
},
"blocks": [
{
"type": "block",
"name": "paragraph",
"form": "paragraph",
"inlines": [
{
"name": "text",
"type": "string",
"value": "bodyy",
"location": [
{
"line": 3,
"col": 1
},
{
"line": 3,
"col": 5
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment