Skip to content

BlockNormalizationOptions

Defined in: block-tools/src/util/normalizeBlock.ts:16

Block normalization options

optional allowedDecorators: string[]

Defined in: block-tools/src/util/normalizeBlock.ts:20

Decorator names that are allowed within portable text blocks, eg em, strong


optional blockTypeName: string

Defined in: block-tools/src/util/normalizeBlock.ts:25

Name of the portable text block type, if not block


optional keyGenerator: () => string

Defined in: block-tools/src/util/normalizeBlock.ts:30

Custom key generator function

string