Skip to content

SoftIndentPrefixBounds

Defined in: softIndentExtension.ts:27

Document positions for one markdown “prefix” on a line (blockquote marker, list marker, indentation spaces, task checkbox, etc.).

Soft indent hangs this prefix on the first line and aligns wrapped lines with body start.

bodyStartPos: number

Defined in: softIndentExtension.ts:44

First character of body content — the position immediately after prefix.

This is the usual right edge of the hung prefix (where wrapped lines should align).


lineFrom: number

Defined in: softIndentExtension.ts:29

Document position where the line begins.


prefix: string

Defined in: softIndentExtension.ts:31

Matched prefix text at the start of the line.


prefixEndPos: number

Defined in: softIndentExtension.ts:38

Last character of prefix in the document.

Used only when the body cannot be measured at bodyStartPos (e.g. the first body character sits on a replace decoration such as inline MathJax).