atproto blogging
1//! WASM bindings for the weaver markdown editor.
2//!
3//! Provides embeddable editor components for JavaScript/TypeScript apps.
4//!
5//! # Features
6//!
7//! - `collab`: Enable collaborative editing via Loro CRDT + iroh P2P
8//! - `syntax-highlighting`: Enable syntax highlighting for code blocks
9
10mod actions;
11mod editor;
12mod events;
13mod types;
14
15#[cfg(feature = "collab")]
16mod collab;
17
18pub use actions::*;
19pub use editor::*;
20pub use types::*;
21
22#[cfg(feature = "collab")]
23pub use collab::*;
24
25use wasm_bindgen::prelude::*;
26
27/// Initialize panic hook for better error messages in console.
28#[wasm_bindgen(start)]
29pub fn init() {
30 console_error_panic_hook::set_once();
31}