editorClassDecorations
Builds the decorations for the classes of the editor-class tree in the given ranges.
Import:
import { editorClassDecorations } from '@mnaoumov/obsidian-markdown-parser';Signature:
function editorClassDecorations(state: EditorState, ranges: readonly DocumentRange[]): DecorationSetParameters:
| Parameter | Type | Description |
|---|---|---|
state |
EditorState | The editor state. |
ranges |
readonly DocumentRange[] | The ranges, in document order. |
Returns: DecorationSet — The decorations: a line decoration per line node, a mark per token node.