rustdown_md/lib.rs
1#![forbid(unsafe_code)]
2//! `rustdown-md` — a custom Markdown preview renderer for egui.
3//!
4//! Renders parsed Markdown (via `pulldown-cmark`) directly into egui widgets,
5//! supporting configurable heading colours/sizes and viewport-culled scrolling.
6
7mod parse;
8pub(crate) mod render;
9#[cfg(test)]
10mod stress;
11mod style;
12
13#[cfg(test)]
14mod bench;
15
16pub use parse::{
17 Alignment, Block, ListItem, Span, SpanStyle, StyledText, TableData, heading_level_to_u8,
18};
19pub use render::{MarkdownCache, MarkdownViewer, bytecount_newlines};
20pub use style::{
21 DARK_HEADING_COLORS, HEADING_FONT_SCALES, HeadingStyle, LIGHT_HEADING_COLORS, MarkdownStyle,
22};