Expand description
rustdown-md — a custom Markdown preview renderer for egui.
Renders parsed Markdown (via pulldown-cmark) directly into egui widgets,
supporting configurable heading colours/sizes and viewport-culled scrolling.
Structs§
- Heading
Style - Per-heading-level style: font scale relative to body and colour.
- List
Item - A single list item (may contain nested blocks).
- Markdown
Cache - Cached pre-parsed blocks, height estimates, and the source hash.
- Markdown
Style - Full style configuration for the Markdown renderer.
- Markdown
Viewer - The main Markdown viewer widget.
- Span
- An inline formatting span within a
StyledText. - Span
Style - Inline formatting flags that can be combined (e.g., bold + italic).
- Styled
Text - Styled text: a string with inline formatting spans.
- Table
Data - Table block data, boxed inside
Block::Tableto keep enum size down.
Enums§
Constants§
- DARK_
HEADING_ COLORS - Dracula heading palette for dark themes, ordered from the primary accent (H1) down to warmer secondary accents (H6).
- HEADING_
FONT_ SCALES - Default heading font scales (H1-H6).
- LIGHT_
HEADING_ COLORS - Light-theme companions to the Dracula heading palette.
Functions§
- bytecount_
newlines - Fast newline counting via memchr.
- heading_
level_ to_ u8