pub fn split_lines(content: &str) -> Vec<LineSpan>Expand description
Splits markdown content into line spans.
Handles both LF and CRLF line endings. The last line (no trailing newline)
gets break_length = 0 and end = content.len().
ยงExamples
use talon_core::text::{split_lines, LineSpan};
let lines = split_lines("line1\nline2\nline3");
assert_eq!(lines.len(), 3);
assert_eq!(lines[0].text, "line1");
assert_eq!(lines[0].line_number, 1);
assert_eq!(lines[2].text, "line3");
assert_eq!(lines[2].break_length, 0);