Skip to main content

markdown/
markdown.rs

1//! `boltz-markdown`: CommonMark/GFM parsing + rendering primitives.
2//!
3//! Layering: this crate must never depend on `boltz-ui` (see `controls.rs`
4//! module docs) so that `boltz-ui` can depend on `boltz-markdown` without
5//! creating a dependency cycle.
6
7mod builder;
8mod controls;
9mod element;
10mod entity;
11mod html_rendering;
12mod path_range;
13mod rendered;
14mod style;
15
16pub mod parser;
17
18pub use controls::*;
19pub use element::{CodeSpanLinkCallback, MarkdownElement};
20pub use entity::{
21    AutoscrollBehavior, CodeBlockRenderFn, CodeBlockRenderer, CodeBlockTransformFn, Copy,
22    CopyAsMarkdown, Markdown, MarkdownOptions, ParsedMarkdown,
23};
24pub use path_range::{LineCol, PathWithRange};
25pub use style::*;