]> git.giacomolli.uk - onechat/commit
Render Markdown with plain terminal styles
authorAnderson A. Giacomolli <redacted>
Tue, 10 Nov 2026 02:30:51 +0000 (23:30 -0300)
committerAnderson A. Giacomolli <redacted>
Tue, 10 Nov 2026 02:52:52 +0000 (23:52 -0300)
commit209df5ce842e24b3c6e99a322fe3d98ab2df720b
treefa3032d8fbe26a2ffb48725f2612873eeda018a0
parent8fb85e5647f82e029956d81be29b3a5ac3490636
Render Markdown with plain terminal styles

The terminal renderer wraps styled text and table cells to the display
width. It uses bold, dim, italic, and reverse without colors, and keeps
unclosed marks as text through the shared parser. Wide characters take
two columns. The existing text module supplies width data, so vendoring
includes that package without a new dependency.
nix/package.nix
terminal_markdown.go [new file with mode: 0644]
terminal_markdown_test.go [new file with mode: 0644]