Skip to content

ReplaceDecorationSpec

Unofficial

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

Import:

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

Signature:

export interface ReplaceDecorationSpec

Properties

Property Type Description
block? boolean Whether this is a block replacement.
inclusive? boolean Whether both sides of the replacement are inclusive.
inclusiveEnd? boolean Whether the end of the replacement is inclusive.
inclusiveStart? boolean Whether the start of the replacement is inclusive.
widget? WidgetType Optional widget to display in place of the replaced text.