kotaindah55_extended-markdo.../src/editor-mode/doc-utils/isBlockEnd.ts
2025-03-17 11:14:27 +02:00

8 lines
No EOL
282 B
TypeScript

import { Line, Text } from "@codemirror/state";
import { getNextLine } from "./getNextLine";
import { isBlankLine } from "./isBlankLine";
export function isBlockEnd(doc: Text, line: Line) {
let nextLine = getNextLine(doc, line);
return !nextLine || isBlankLine(nextLine);
}