1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
//! Shared markdown rendering types.
//!
//! The actual rendering implementation lives in `vtcode-ui`. These structs
//! define the output format so that `vtcode-core` can work with rendered
//! markdown lines regardless of whether the TUI crate is compiled in.
use ;
/// A styled segment inside a rendered markdown line.
///
/// Keep field-compatible with the TUI variant `vtcode_ui::tui::ui::markdown::MarkdownSegment`;
/// `vtcode-core` picks one of the two by feature and streams both through the same shapes.
/// A single rendered markdown line made up of styled segments.
///
/// Keep field-compatible with the TUI variant `vtcode_ui::tui::ui::markdown::MarkdownLine`.
/// Visual weight for fenced code blocks.
///
/// `Primary` keeps the theme foreground at full intensity. `Muted` recedes the
/// block toward the theme background so secondary surfaces (evidence bodies
/// behind a disclosure) stay readable without competing with the summary.
/// Muted is an explicit theme-derived color, never a faint/dim text attribute:
/// several terminals attenuate that attribute to near-invisible and ratatui
/// only ever *inserts* modifiers, so a dimmed area background would mute every
/// glyph painted on top of it.
/// Options for the markdown rendering pipeline.
///
/// Keep field-compatible with the TUI variant `vtcode_ui::tui::ui::markdown::RenderMarkdownOptions`.
/// A syntax-highlighted text segment.
///
/// Keep field-compatible with the TUI variant `vtcode_ui::tui::ui::markdown::HighlightedSegment`.