MarkDecorationSpec
Unofficial
Specification for a mark decoration that styles a range of text.
Import:
import type { MarkDecorationSpec } from '@obsidian-typings/obsidian-catalyst-latest';Signature:
export interface MarkDecorationSpecProperties
| 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. |