Limit lines to display
3/27/26Less than 1 minute
Limit lines to display
You can limit the visible lines by passing a limit option to the text adapter. The start and end values define a character range in the text; only lines that intersect this range are displayed.
import { createAnnotatedText } from "@ghentcdh/annotated-text";
createAnnotatedText(id)
.setTextAdapter({ limit: { start: 99, end: 180, ignoreLines: false } })When ignoreLines is false (the default), every line that overlaps the range is included in full. When set to true, only the characters strictly within the start/end range are shown and line boundaries are ignored.
Example
Ignore Lines=falseIgnore Lines=true