---
title: "Marcli: Markdown Belongs in the Terminal"
url: https://daily.dev/posts/marcli-markdown-belongs-in-the-terminal-dv0yhkj66
source_url: https://rocket-science.ru/hacking/2026/05/24/rust-marcli-library
type: article
source: "Beam Bloggers Webring"
published: 2026-05-24T05:27:56.157Z
updated: 2026-05-24T05:28:21.399Z
tags: ["rust", "markdown"]
reading_time: 8
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Marcli: Markdown Belongs in the Terminal

**[Beam Bloggers Webring](https://daily.dev/sources/beambloggers)** · 8 min read · 0 upvotes · 0 comments

## Summary

Marcli is a Rust library that renders CommonMark Markdown as richly styled ANSI terminal output. It uses comrak (GitHub's Markdown parser) for parsing and syntect (Sublime Text grammars) for syntax highlighting. The API is minimal — a single render() function call returns a styled string. Supported elements include headings with color hierarchy, bullet/ordered lists with Unicode markers, fenced code blocks with box-drawing borders and syntax highlighting, tables, task lists, block quotes, and links. Every visual aspect is controlled via a flat Theme struct that can be loaded from TOML files. Additional options include CRLF support for web terminals (xterm.js) and an escape_sequences flag to strip ANSI codes for logging or piping. The library has only six dependencies and no async runtime, making it suitable for CLI tools that need styled help text or error messages without pulling in a full TUI framework.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://rocket-science.ru/hacking/2026/05/24/rust-marcli-library>

---

Tags: [#rust](https://daily.dev/tags/rust), [#markdown](https://daily.dev/tags/markdown)

[View this post on daily.dev](https://daily.dev/posts/marcli-markdown-belongs-in-the-terminal-dv0yhkj66)
