Fixes#3881: `bd show` rendered markdown bodies as unstyled plaintext.
Root cause: the glamour v1->v2 migration dropped the style option from the
`NewTermRenderer` call. In glamour v2 that constructor does not auto-select a
style, so output was emitted with an empty StyleConfig (plaintext) on every
platform. Section labels (DESCRIPTION, COMMENT) stayed colored because they use
`ui.RenderBold`, not glamour -- matching the "headers formatted, body not"
report.
This restores rendering and adds terminal-capability gating:
- ANSI styling when color is supported (honoring NO_COLOR / CLICOLOR / TERM=dumb)
- OSC 8 hyperlinks only on a known-capable terminal allowlist, with a
FORCE_HYPERLINK override
- glamour notty style as a structured fallback when color is unavailable
Tests (`internal/uimd/markdown_test.go`) cover the styled, plaintext, OSC 8, and
agent-mode paths, including a dedicated #3881 regression guard that fails against
the empty-StyleConfig bug and passes with the fix.
Authored by @MovGP0; regression test and merge by the maintainer.
Agent-Signature: claude-opus-4-8-high on behalf of matt wilkie