vtcode_core/ui/
mod.rs

1//! User interface utilities and shared UI components
2//!
3//! This module contains shared UI functionality including loading indicators,
4//! markdown rendering, and terminal utilities.
5
6pub mod diff_renderer;
7pub mod markdown;
8pub mod slash;
9pub mod styled;
10pub mod terminal;
11pub mod theme;
12pub mod tui;
13pub mod user_confirmation;
14
15pub use markdown::*;
16pub use slash::*;
17pub use styled::*;
18pub use terminal::*;
19pub use theme::*;
20pub use tui::*;
21
22#[cfg(test)]
23mod tests {
24    use super::*;
25
26    #[test]
27    fn test_render_markdown() {
28        let markdown_text = r#"
29# Welcome to VTCode
30
31This is a **bold** statement and this is *italic*.
32
33## Features
34
35- Advanced code analysis
36- Multi-language support
37- Real-time collaboration
38"#;
39
40        // This should not panic
41        render_markdown(markdown_text);
42    }
43}