Skip to main content

waft_markdown/
lib.rs

1//! Markdown widgets for Waft, with flutter_markdown's API ideas and look.
2//!
3//! [`parse`] turns Markdown into a typed document of [`Block`]s and [`Inline`]s with
4//! pulldown-cmark; [`MarkdownBody`] and [`Markdown`] keep that document and render it, in the
5//! look of the inherited [`DefaultMarkdownStyle`] or their own [`MarkdownStyleSheet`]. Each
6//! element renders as its function in [`render`] does unless the widget has a hook for it.
7#![feature(arbitrary_self_types)]
8
9mod document;
10pub mod render;
11mod style_sheet;
12#[cfg(test)]
13mod test_support;
14mod widget;
15
16pub use document::*;
17pub use pulldown_cmark::Options;
18pub use render::Bullet;
19pub use style_sheet::*;
20pub use widget::*;