@markdoc/markdoc 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -1
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +5 -1
- package/dist/index.mjs.map +2 -2
- package/dist/src/ast/node.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/ast/node.ts +6 -0
package/dist/index.mjs
CHANGED
|
@@ -6927,7 +6927,11 @@ var Node = class {
|
|
|
6927
6927
|
resolve(config = {}) {
|
|
6928
6928
|
return Object.assign(new Node(), this, {
|
|
6929
6929
|
children: this.children.map((child) => child.resolve(config)),
|
|
6930
|
-
attributes: resolve(this.attributes, config)
|
|
6930
|
+
attributes: resolve(this.attributes, config),
|
|
6931
|
+
slots: Object.fromEntries(Object.entries(this.slots).map(([name, slot2]) => [
|
|
6932
|
+
name,
|
|
6933
|
+
slot2.resolve(config)
|
|
6934
|
+
]))
|
|
6931
6935
|
});
|
|
6932
6936
|
}
|
|
6933
6937
|
findSchema(config = {}) {
|