mq-view

Crates.iomq-view
lib.rsmq-view
version0.1.8
created_at2025-12-17 13:19:34.642005+00
updated_at2026-01-20 12:07:19.916254+00
descriptionA library and CLI tool for rendering Markdown documents with syntax highlighting and rich text formatting
homepagehttps://mqlang.org
repositoryhttps://github.com/harehare/mq-view
max_upload_size
id1990169
size219,460
Takahiro Sato (harehare)

documentation

README

mq-view

ci

A library and CLI tool for rendering Markdown documents with syntax highlighting and rich text formatting. Built with mq - jq-like command-line tool for markdown processing.

demo

Features

  • 🎨 Syntax Highlighting: Tree-sitter powered syntax highlighting for 13+ programming languages
  • 📝 Rich Markdown Rendering: Support for headers, lists, code blocks, links, images, and more
  • 🔔 GitHub-style Callouts: NOTE, TIP, IMPORTANT, WARNING, CAUTION
  • 🔗 Clickable Links: Terminal hyperlinks using OSC 8

Installation

Quick Install

curl -sSL https://raw.githubusercontent.com/harehare/mq-view/refs/heads/main/bin/install.sh | bash

The installer will:

  • Download the latest mq-view binary for your platform
  • Install it to ~/.mq/bin/
  • Update your shell profile to add mq-view to your PATH

Cargo

From crates.io (stable):

cargo install mq-view

From git (latest):

cargo install --git https://github.com/harehare/mq-view.git

Supported Languages

  • Rust, JavaScript, TypeScript (+ TSX)
  • Python, Go, Java
  • C, C++
  • HTML, CSS, JSON
  • Bash/Shell

Usage

As a CLI Tool

View a markdown file:

mq-view README.md

Pipe markdown content:

echo "# Hello\n\n\`\`\`rust\nfn main() {}\n\`\`\`" | mq-view

License

MIT

Commit count: 65

cargo fmt