Skip to content

MarkDecorationSpec

Unofficial

Specification for a mark decoration that styles a range of text.

Import:

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

Signature:

export interface MarkDecorationSpec

Properties

Property Type Description
attributes? DecorationAttributes HTML attributes to add to the wrapping element.
class? string CSS class to add to the wrapping element.
inclusive? boolean Whether both sides of the decoration are inclusive.
inclusiveEnd? boolean Whether the end of the decoration is inclusive.
inclusiveStart? boolean Whether the start of the decoration is inclusive.
tagName? string The HTML tag to wrap the text in.