BlockNormalizationOptions
Defined in: block-tools/src/util/normalizeBlock.ts:16
Block normalization options
Properties
Section titled “Properties”allowedDecorators?
Section titled “allowedDecorators?”
optional
allowedDecorators:string
[]
Defined in: block-tools/src/util/normalizeBlock.ts:20
Decorator names that are allowed within portable text blocks, eg em
, strong
blockTypeName?
Section titled “blockTypeName?”
optional
blockTypeName:string
Defined in: block-tools/src/util/normalizeBlock.ts:25
Name of the portable text block type, if not block
keyGenerator()?
Section titled “keyGenerator()?”
optional
keyGenerator: () =>string
Defined in: block-tools/src/util/normalizeBlock.ts:30
Custom key generator function
Returns
Section titled “Returns”string