Skip to content

SerializerConfig

@blobs/sdk v0.1.0


@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?

optional lineBreakHeight?: number

Defined in: serializers/types.ts:23

Height of line breaks in pixels (default: 16)


useDivGaps?

optional useDivGaps?: boolean

Defined in: serializers/types.ts:25

Use div gaps instead of br tags for line breaks


preserveWhitespace?

optional preserveWhitespace?: boolean

Defined in: serializers/types.ts:27

Preserve whitespace exactly


cssClasses?

optional cssClasses?: Record<string, string>

Defined in: serializers/types.ts:29

Custom CSS classes to apply to elements