HighlightLinesParams
Parameters of highlightLines.
Import:
import type { HighlightLinesParams } from '@mnaoumov/obsidian-markdown-parser';Signature:
export interface HighlightLinesParams extends EditorClassOptionsExtends: EditorClassOptions
Properties
| Property | Type | Description |
|---|---|---|
| lines | readonly string[] | The document's lines, without their newlines. |
| obsidianVersion? | string | The Obsidian version, as x.y.z. From 1.15.0 on, a mark that closes emphasis, strikethrough or a code span also wears formatting-<kind>-end, and a *** that opens both emphases wears formatting-em beside formatting-strong.(Inherited from EditorClassOptions) |
| onLineEnd? | (lineIndex: number, state: LineState) => void | Called with a copy of the state after each line, for callers that keep resume points. |
| startLine? | number | The index of the first line to highlight. |
| state? | LineState | The state before startLine, from HighlightLinesParams.onLineEnd. A fresh state for obsidianVersion when omitted; a given state keeps the version it was started for. |
Links to this page: