notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

lib.rs (466B)


      1 //! Incremental markdown parser for streaming LLM output.
      2 //!
      3 //! Designed for chat interfaces where markdown arrives token-by-token
      4 //! and needs to be rendered progressively.
      5 
      6 mod element;
      7 mod inline;
      8 mod parser;
      9 mod partial;
     10 
     11 pub use element::{CodeBlock, InlineElement, InlineStyle, ListItem, MdElement, Span};
     12 pub use inline::{parse_inline, InlineState};
     13 pub use parser::StreamParser;
     14 pub use partial::{LinkState, Partial, PartialKind};
     15 
     16 #[cfg(test)]
     17 mod tests;