This package defines a renderer for documents generated by the @effect/printer package, suitable for displaying them on ANSI-compatible terminals, including colors, bolding, underlining and italicizing.
Text leaves are rendered verbatim, including control characters. Rendering returns a string and does not make untrusted text safe for a terminal. Apply AnsiDoc.sanitize to attacker-controlled subtrees before writing the result to a terminal. Keep trusted, intentional terminal sequences outside the sanitized subtree.