Skip to main content

Crate strata_editor

Crate strata_editor 

Source
Expand description

Strata Editor: Headless Document Model, Rich Text WYSIWYG & Code Editor Engine.

Provides a zero-DOM, pure-Rust equivalent to TipTap, Lexical, Slate, and Monaco. Supports hierarchical block nodes, inline marks (bold, italic, code, links), bi-directional GitHub Flavored Markdown serialization, virtualized line buffers, multi-cursor editing, incremental syntax highlighting, bracket matching, code folding, transactional undo/redo history, multi-format clipboard exchange, and CJK IME composition.

Re-exports§

pub use buffer::LineBuffer;
pub use buffer::TextRope;
pub use clipboard::ClipboardBridge;
pub use clipboard::ClipboardPayload;
pub use code_editor::CodeEditor;
pub use cursor::MultiCursor;
pub use cursor::Position;
pub use cursor::Selection;
pub use editor::use_editor;
pub use editor::EditorState;
pub use history::EditOperation;
pub use history::EditorTransaction;
pub use history::HistoryStack;
pub use ime::ImeComposition;
pub use ime::ImeState;
pub use markdown::from_markdown;
pub use markdown::to_markdown;
pub use model::BlockKind;
pub use model::BlockNode;
pub use model::Document;
pub use model::InlineMark;
pub use model::InlineSpan;
pub use soft_wrap::logical_to_visual;
pub use soft_wrap::visual_to_logical;
pub use soft_wrap::wrap_logical_line;
pub use soft_wrap::VisualLine;
pub use syntax::FoldRange;
pub use syntax::Language;
pub use syntax::SyntaxHighlighter;
pub use syntax::SyntaxToken;
pub use syntax::TokenType;

Modules§

buffer
Virtualized Balanced B-Tree Rope Line Buffer with O(log N) line indexing and fine-grained mutations.
clipboard
Multi-format clipboard bridge supporting Plain Text, Markdown, Semantic HTML, and RTF.
code_editor
High-performance Code Editor controller with virtualized lines, syntax highlighting, and gutter.
cursor
Multi-cursor tracking, selection ranges, and collision normalization.
editor
Headless Editor State Machine and Text Mutation Pipeline.
history
Transactional Undo/Redo engine with timestamp-based typing coalescing.
ime
Input Method Editor (IME) composition tracking for East Asian CJK input.
markdown
Bi-Directional Markdown Parser and Serializer.
model
Headless Block Document Tree and Inline Mark AST.
prelude
soft_wrap
Soft Word-Wrapping and Visual-to-Logical Coordinate Translation for Strata Editor.
syntax
Real-time incremental syntax tokenization, bracket pair matching, and code folding.