pub fn render_inline(
text: &str,
color: bool,
theme: &ThemeDefinition,
overrides: &StyleOverrides,
) -> StringExpand description
Renders lightweight inline markup to a styled string.
Returns plain text when color is false so callers can reuse the same
content path for terminals, copy buffers, and test assertions.
ยงExamples
use osp_cli::ui::{StyleOverrides, render_inline, resolve_theme};
let rendered = render_inline(
"Use `uid`",
false,
&resolve_theme("dracula"),
&StyleOverrides::default(),
);
assert_eq!(rendered, "Use uid");