INNER CODE UNIT · Python
_cell
marc-shade/world-intel-mcp · src/world_intel_mcp/cli.py:115
def _cell(value: Any) -> Text:
"""Table cell for remote data: renders literally, never as markup.
A bracketed sequence in an upstream value ("Coast of [/] Chile",
"[red]fake[/red]") must neither vanish into Rich's markup parser nor
raise MarkupError. Column-level style/justify still apply to Text
cells; only content-embedded markup is neutralized. Cells that
deliberately wrap a remote value in markup keep the markup and
escape() the interpolated value instead.
"""
return Text(str(value))
# ---------------------------------------------------------------------------
# Root group
# ---------------------------------------------------------------------------