@markdoc/markdoc 0.3.1 → 0.3.2

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 CHANGED
@@ -6894,6 +6894,8 @@ var transformer_default = {
6894
6894
  }
6895
6895
  if (schema.slots) {
6896
6896
  for (const [key, slot2] of Object.entries(schema.slots)) {
6897
+ if (slot2.render === false)
6898
+ continue;
6897
6899
  const name = typeof slot2.render === "string" ? slot2.render : key;
6898
6900
  if (node2.slots[key])
6899
6901
  output[name] = this.node(node2.slots[key], config);
@@ -8537,8 +8539,8 @@ function validateTree(content, config) {
8537
8539
  const output = [...walkWithParents(content)].map(([node2, parents]) => {
8538
8540
  const { type, lines, location } = node2;
8539
8541
  const updatedConfig = {
8540
- validation: { ...config.validation, parents },
8541
- ...config
8542
+ ...config,
8543
+ validation: { ...config.validation, parents }
8542
8544
  };
8543
8545
  const errors = validator(node2, updatedConfig);
8544
8546
  if (isPromise(errors)) {