Skip to content

ReplaceDecorationSpec

Unofficial

Specification for a replace decoration that replaces a range of text.

Import:

import type { ReplaceDecorationSpec } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface ReplaceDecorationSpec

Properties

PropertyTypeDescription
block?booleanWhether this is a block replacement.
inclusive?booleanWhether both sides of the replacement are inclusive.
inclusiveEnd?booleanWhether the end of the replacement is inclusive.
inclusiveStart?booleanWhether the start of the replacement is inclusive.
widget?WidgetTypeOptional widget to display in place of the replaced text.