Skip to main content

Function: getTextContentLines()

getTextContentLines(text: string): readonly Readonly<{ end: number; start: number; text: string; }>[]

Defined in: _internal/text-content-lint.ts:139

Split raw Markdown/MDX text into logical lines without trailing newlines.

Parametersโ€‹

textโ€‹

string

Full Markdown/MDX source text.

Returnsโ€‹

readonly Readonly<{ end: number; start: number; text: string; }>[]

Lines with inclusive-exclusive source ranges.