Something went wrong. Try again.
Something went wrong. Try again.
666 B · 31 lines
Rust
at main
1234567891011121314151617181920212223242526272829303132//! WASM bindings for the weaver markdown editor.//!//! Provides embeddable editor components for JavaScript/TypeScript apps.//!//! # Features//!//! - `collab`: Enable collaborative editing via Loro CRDT + iroh P2P//! - `syntax-highlighting`: Enable syntax highlighting for code blocks
mod actions;mod editor;mod events;mod types;
#[cfg(feature = "collab")]mod collab;
pub use actions::*;pub use editor::*;pub use types::*;
#[cfg(feature = "collab")]pub use collab::*;
use wasm_bindgen::prelude::*;
/// Initialize panic hook for better error messages in console.#[wasm_bindgen(start)]pub fn init() { console_error_panic_hook::set_once();}