Skip to content

Commit

Permalink
Add version to outputted body
Browse files Browse the repository at this point in the history
  • Loading branch information
adgad authored and chee committed Jan 28, 2025
1 parent 6fa51ff commit 200d63d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions libraries/from-bodyxml/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ export function fromXast(bodyxast, transformers = defaultTransformers) {
type: "root",
body: {
type: "body",
version: 1,
// this is a flatmap because of <experimental/>
children: xmlnode.children[0].children.flatMap(walk),
},
Expand Down
1 change: 1 addition & 0 deletions tests/bodyxml-to-content-tree/output/simple-old-post.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"type": "root",
"body": {
"type": "body",
"version": 1,
"children": [
{
"type": "image-set",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"type": "root",
"body": {
"type": "body",
"version": 1,
"children": [
{
"type": "heading",
Expand Down

0 comments on commit 200d63d

Please sign in to comment.