SerializerConfig
@blobs/sdk / serializers / SerializerConfig
Defined in: serializers/types.ts:21
Configuration options shared across all serializers.
Most fields tweak how line breaks and whitespace are reproduced when round-tripping between editor HTML and the canonical content string.
Properties
lineBreakHeight?
optionallineBreakHeight?:number
Defined in: serializers/types.ts:23
Height of line breaks in pixels (default: 16)
useDivGaps?
optionaluseDivGaps?:boolean
Defined in: serializers/types.ts:25
Use div gaps instead of br tags for line breaks
preserveWhitespace?
optionalpreserveWhitespace?:boolean
Defined in: serializers/types.ts:27
Preserve whitespace exactly
cssClasses?
optionalcssClasses?:Record<string,string>
Defined in: serializers/types.ts:29
Custom CSS classes to apply to elements