pub fn parse_markdown(input: &str, theme: &Theme) -> Vec<Line<'static>>Expand description
Parse markdown and convert to theme-styled ratatui Lines.
Code-block lines are tagged by setting the returned Line’s base style
background to the theme’s code_background. The chat renderer keys off
that to skip word-wrapping them (so indentation survives) and to know
they’re pre-formatted. Inline code carries the background on the span,
not the line, so prose lines that merely contain code still word-wrap.