A decorator applied to a content string value in order to create rich text.

Decorator

interface Decorator {
    depth?: number;
    length?: number;
    offset?: number;
    type?: DecoratorType;
}

Properties

depth?: number

The relative intensity or variation of this decorator. Decorators such as bullet-points, for example, can have multiple indentation depths.

Decorator

length?: number

The number of content characters to alter with this decorator. Decorators such as line breaks can have zero length and fit between characters.

Decorator

offset?: number

The starting character of this decorator within the content string. Use zero for the first character.

Decorator

Decorator