fix(cli): skip markdown highlighter when stdout is not a TTY
yoctomarkdown emits \x1b[2K\r (erase-line + CR) sequences for live in-place rewrites. These are TTY-only and produce garbage when stdout is piped to a file, another tool, or captured in CI. Gate highlighter creation on terminal.isStdoutTTY (mirrors the existing Spinner gate on isStderrTTY). When no highlighter, fall through to write(text) so the raw content still streams out correctly. Adds a non-TTY test asserting no \x1b[2K or \r in piped output.
xonecas2026-03-15
4058cf2ef64bc0b61d29faeef3a53606252e9927
parent 6dac72f