diff --git a/apps/docs/src/content/docs/index.mdx b/apps/docs/src/content/docs/index.mdx index c41ed1b..fa9dc6c 100644 --- a/apps/docs/src/content/docs/index.mdx +++ b/apps/docs/src/content/docs/index.mdx @@ -29,13 +29,14 @@ import Npm from '@/components/npm.astro'; ## Usage ```typescript -import { makeTableInPlaceBaker, makeTableFactory } from "@json-table/core/json-to-table"; +import { makeBlockFactory } from "@json-table/core/json-to-table"; import { blockToASCII } from "@json-table/core/block-to-ascii"; -const cornerCellValue = "№"; -const factory = makeTableFactory({ cornerCellValue }); -const bake = makeTableInPlaceBaker({ cornerCellValue, head: true, indexes: true }); -const asciiTable = blockToASCII(bake(factory(data))); +const block = makeBlockFactory({ + cornerCellValue: "№", + joinPrimitiveArrayValues: true, +}); +const asciiTable = blockToASCII(block(data)); ``` Input data: