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.
Properties
Section titled “Properties”bodyStartPos
Section titled “bodyStartPos”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
Section titled “lineFrom”lineFrom:
number
Defined in: softIndentExtension.ts:29
Document position where the line begins.
prefix
Section titled “prefix”prefix:
string
Defined in: softIndentExtension.ts:31
Matched prefix text at the start of the line.
prefixEndPos
Section titled “prefixEndPos”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).