Marcli

CommonMark Markdown to ANSI-escaped terminal output

Active ElixirMDExANSIMakeup 5 2705
Marcli

converts Markdown into styled terminal text using ANSI escape sequences. It parses CommonMark via MDEx and renders headings, lists, code blocks, inline formatting, links, images, task lists and emoji shortcodes as richly styled output for terminal emulators.

Headings get distinct colors (h1 bold yellow, h2 bold cyan, h3+ bold white), lists use triangle or circled-number markers, block quotes get a vertical-bar prefix, and links render underlined with a dimmed URL. When a makeup_ lexer library is loaded ( makeup_elixir , makeup_erlang , makeup_html , and so on), fenced code blocks tagged with a language are automatically syntax-highlighted via Makeup.Registry , no extra configuration needed, degrading to unhighlighted output when no matching lexer is available.

Marcli.render("# Hello\n\nSome **bold** text.")