pub fn render_doc(topic: &str, text: &str, colored: bool) -> StringExpand description
Render a doc page (heading + rule + body) for terminal display.
text is the raw markdown returned by lsp::doc_text_for. When
colored is false, ANSI sequences are stripped to empty strings so
the output is plain UTF-8 suitable for files / pipes / non-tty sinks.