Skip to content

HighlightLinesParams

Parameters of highlightLines.

Import:

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

Signature:

export interface HighlightLinesParams extends EditorClassOptions

Extends: EditorClassOptions

Properties

PropertyTypeDescription
linesreadonly string[]The document's lines, without their newlines.
obsidianVersion?stringThe 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) => voidCalled with a copy of the state after each line, for callers that keep resume points.
startLine?numberThe index of the first line to highlight.
state?LineStateThe 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: