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

PropertyTypeDescription
attributes?DecorationAttributesHTML attributes to add to the wrapping element.
class?stringCSS class to add to the wrapping element.
inclusive?booleanWhether both sides of the decoration are inclusive.
inclusiveEnd?booleanWhether the end of the decoration is inclusive.
inclusiveStart?booleanWhether the start of the decoration is inclusive.
tagName?stringThe HTML tag to wrap the text in.