bezel-editor 0.1.20

A Notion-style block editor for gpui — the editing surface over the markdown document model
Documentation
//! A Notion-style block editor for gpui, over the `markdown` document model.
//!
//! ```ignore
//! editor::init(cx);                       // once, at startup
//! let editor = cx.new(|cx| editor::Editor::new("# Title", cx));
//! ```
//!
//! `markdown` holds the document, its markdown wire form, and the painting —
//! all of it testable without a window. What lives here is the half that needs
//! one: focus, keys, the platform input handler, the mouse, undo, and the menus.

mod comment;
mod editor;
mod history;
mod layout;
mod link;
mod slash;
mod text_size;

pub use comment::{Anchor, CommentId};
#[doc(hidden)]
pub use editor::menu::{BLOCK_HANDLE, BLOCK_MENU, SLASH_MENU};
pub use editor::{
    CONTEXT, Chrome, Editor, EditorEvent, Formatting, Mode,
    image::{ImageStore, Source, set_image_store},
    init, keys, turns,
};
pub use history::{DEFAULT_UNDO_LIMIT, EditKind, History, Step};
pub use layout::{Layout, set_layout};
pub use text_size::{
    TextSize, adjust_text_size, reset_text_size, set_text_size, text_size_adjustment,
};