lexical-ui 0.1.3

A Rust port of Lexical's model and headless packages, at parity with the JS implementation.
Documentation
//! `@lexical/hashtag` (the `hashtag` feature), from
//! `packages/lexical-hashtag/src`: `HashtagNode`, the text entity a
//! `#hashtag` becomes, `$createHashtagNode`, `$isHashtagNode`, the default
//! matcher ([`get_hashtag_match`]) and [`register_lexical_hashtag`], which
//! makes hashtags of the text it matches with
//! [`register_lexical_text_entity`](crate::text::register_lexical_text_entity).
//! Its JSON is `TextNode`'s.
//!
//! The matcher does what upstream's regular expression does without the
//! `regex` crate: its character classes are tables generated from the JS
//! source (`tables.rs`), over UTF-16 code units as JS's regular expression
//! (`i`, no `u`) sees them.
//!
//! With the `extension` feature, `hashtag_extension` is `HashtagExtension`.
//!
//! Not ported: `createDOM`, which comes with `html`.

mod lexical_hashtag_extension;
mod lexical_hashtag_node;
// Generated; regenerated rather than formatted.
#[rustfmt::skip]
mod tables;

pub use lexical_hashtag_extension::{
    GetHashtagMatch, HashtagConfig, get_hashtag_match, register_lexical_hashtag,
};
#[cfg(feature = "extension")]
pub use lexical_hashtag_extension::{
    HashtagConfigOverrides, HashtagExtensionType, hashtag_extension,
};
pub use lexical_hashtag_node::{HashtagNode, create_hashtag_node, hashtag_nodes, is_hashtag_node};