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 spinner;
10pub mod styled;
11pub mod terminal;
12pub mod theme;
13pub mod tui;
14pub mod user_confirmation;
15
16pub use markdown::*;
17pub use slash::*;
18pub use spinner::*;
19pub use styled::*;
20pub use terminal::*;
21pub use theme::*;
22pub use tui::*;
23
24#[cfg(test)]
25mod tests {
26    use super::*;
27
28    #[test]
29    fn test_render_markdown() {
30        let markdown_text = r#"
31# Welcome to VTCode
32
33This is a **bold** statement and this is *italic*.
34
35## Features
36
37- Advanced code analysis
38- Multi-language support
39- Real-time collaboration
40"#;
41
42        // This should not panic
43        render_markdown(markdown_text);
44    }
45}