pub fn line_from_inline(text: &str) -> LineBlockExpand description
Parses inline markup and wraps the result in a single LineBlock.
This keeps the block model aligned with the richer document renderer while still letting callers use the lightweight inline grammar.
ยงExamples
use osp_cli::ui::{StyleToken, line_from_inline};
let line = line_from_inline("`uid`");
assert_eq!(line.parts.len(), 1);
assert_eq!(line.parts[0].token, Some(StyleToken::Key));
assert_eq!(line.parts[0].text, "uid");