Documentation
¶
Overview ¶
Package render holds small text-shaping helpers shared by the CLI and LSP surfaces: everything user-visible passes through here so untrusted input (git metadata, source-derived signatures) is handled once.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sanitize ¶
Sanitize strips control characters before untrusted text reaches a terminal or editor: commit titles and authors come straight from git history, where ANSI/OSC escape sequences are legal and can manipulate the viewer's terminal (title changes, cursor moves, fake hyperlinks).
func SanitizeBlock ¶ added in v0.8.0
SanitizeBlock strips control characters from multi-line untrusted text but keeps newlines and tabs. It also strips C1 controls and bidirectional overrides, which can reorder or hide terminal text.
Types ¶
This section is empty.