myst-transforms
Advanced tools
Comparing version 1.3.17 to 1.3.18
@@ -282,2 +282,14 @@ import { unified } from 'unified'; | ||
}); | ||
// Finalize children by combining consecutive html nodes | ||
const combined = []; | ||
tree.children.forEach((child) => { | ||
var _a; | ||
if (((_a = combined[combined.length - 1]) === null || _a === void 0 ? void 0 : _a.type) === 'html' && child.type === 'html') { | ||
combined[combined.length - 1].value = `${combined[combined.length - 1].value}${child.value}`; | ||
} | ||
else if (child.type !== '__delete__') { | ||
combined.push(child); | ||
} | ||
}); | ||
tree.children = combined; | ||
} | ||
@@ -284,0 +296,0 @@ /** |
{ | ||
"name": "myst-transforms", | ||
"version": "1.3.17", | ||
"version": "1.3.18", | ||
"sideEffects": false, | ||
@@ -29,6 +29,6 @@ "type": "module", | ||
"mdast-util-find-and-replace": "^2.1.0", | ||
"myst-common": "^1.4.6", | ||
"myst-frontmatter": "^1.4.6", | ||
"myst-common": "^1.4.7", | ||
"myst-frontmatter": "^1.4.7", | ||
"myst-spec": "^0.0.5", | ||
"myst-spec-ext": "^1.4.6", | ||
"myst-spec-ext": "^1.4.7", | ||
"myst-to-html": "1.4.4", | ||
@@ -35,0 +35,0 @@ "rehype-parse": "^8.0.4", |
Sorry, the diff of this file is not supported yet
199906
4197
Updatedmyst-common@^1.4.7
Updatedmyst-frontmatter@^1.4.7
Updatedmyst-spec-ext@^1.4.7