LineBreak
LineBreak:
{}Represents a line break (soft return) within a paragraph.
Remarks
Section titled “Remarks”LineBreak is an inline element that creates a new line within the same paragraph without
starting a new paragraph. This is also known as a “soft return” or “line wrap” and is
typically inserted with Shift+Enter in word processors.
Unlike starting a new paragraph, a line break:
- Keeps the text in the same paragraph
- Maintains paragraph-level formatting and numbering
- Creates visual line separation without semantic paragraph separation
Line breaks can be added programmatically using TextView.addLineBreak.
Example
Section titled “Example”Find all line breaks in a paragraph:
const inlines = textView.inlines();const lineBreaks = inlines.filter(ri => ri.inline.type === 'line-break');console.log(`Found ${lineBreaks.length} line breaks`);Properties
Section titled “Properties”type:
"line-break"
Type discriminator for inline elements.
Remarks
Section titled “Remarks”Always has the value 'line-break'. Use this property to identify line break
elements within text content.