mirror of
https://github.com/kotaindah55/extended-markdown-syntax.git
synced 2026-07-22 05:38:06 +00:00
8 lines
No EOL
282 B
TypeScript
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);
|
|
} |