diff --git a/src/entities/BlockNode/index.ts b/src/entities/BlockNode/index.ts index fd69afc6..973e6bec 100644 --- a/src/entities/BlockNode/index.ts +++ b/src/entities/BlockNode/index.ts @@ -59,6 +59,10 @@ export class BlockNode { .entries(this.#data) .reduce( (acc, [dataKey, value]) => { + /** + * If the value is an array, we need to serialize each node in the array + * Value is an array if the BlockNode contains TextNodes and FormattingNodes + */ if (value instanceof Array) { acc[dataKey] = value.map((node) => node.serialized);