Expand description
sevenmark-utils - Shared utilities for SevenMark crates
Structs§
- Line
Index - Precomputed line start offsets for fast byte-offset-to-position conversion.
- Utf16
Offset Converter - UTF-8 byte offset to UTF-16 code unit offset converter
- Utf16
Position - UTF-16 code unit offset position (0-based) Designed for CodeMirror 6 compatibility
Functions§
- convert_
ast_ to_ utf16_ offset_ json - Converts SevenMark AST to JSON with UTF-16 absolute offsets
- extract_
plain_ text - Extract plain text content from a slice of Elements. Only extracts Text and Escape values (shallow, non-recursive).