Skip to content

ClassSpan

A run of characters with the classes the editor gives them.

Import:

import type { ClassSpan } from '@mnaoumov/obsidian-markdown-parser';

Signature:

export interface ClassSpan

Properties

PropertyTypeDescription
classesreadonly string[]The classes, in the order the mode emitted them (duplicates kept).
fromnumberThe document offset where the span starts.
tonumberThe document offset where the span ends.

Links to this page: