Mcat
Installation • Examples • CHANNELOG
✨ Features
-
📄 File to Markdown/HTML
Convert structured content like CSVs, directories, and rich document formats (e.g., DOCX) into clean Markdown/HTML. -
🏞️ Markdown/HTML to Image
Render Markdown or HTML files into images. -
🖼️ Inline Image/Videos
Display images/videos inside your terminal using protocols like Kitty, iTerm, or Sixel. -
🌐 URL to Inline Image/Video
View Images/Videos from a URL in your terminal -
🔗 Concatenate Images and Video too!
Concatenate videos of the same format (time concat) and Concatenate images by stacking them horizontal or vertical(default) -
💃🏻 Automatic Styling for HTML
automatically inject styles into the HTML to make the image cooler!
⬇️ Installation
or ~
(Coming soon: prebuilt binaries for common platforms.)
🏋️ Example Usage
# View a PDF as Markdown
# Render Markdown to an image
# Show an image inline in your terminal
# Save a document as image
# Show a document as image in the terminal
# Show a document as image in the terminal with dark theme
# Show a document as image in the terminal with your own css
# from a url
# Concat images (stacks vertical)
# Or save it (stacks horizontal)
# Concat Videos (must be same format: codec,audio..)
⚙️ Supported Formats
| Input Type | Output Options |
|---|---|
| DOCX, PDF, CSV, ODT, PPTX, and more.. | Markdown, HTML, Image, Inline |
| Markdown / HTML | Image, Inline Image |
| Images, Videos | Inline Display |
| URLs | Image/Video Fetch + Inline View |
🛐 Dependencies
Mcat tries to have as little dependencies as possible.
chromium (for rendering HTML to image):
- exists on every windows machine through msedge.
- auto installs the binaries if missing
ffmpeg (for videos)
- auto installs binaries if missing
🆘 Help
mcat --help
Usage: mcat.exe [OPTIONS] <input>...
Arguments:
<input>... file / dir
Options:
-o <output> the format to output [possible values: html, md, image, video, inline]
-t <theme> alternative css file for images, valid options: [default, makurai, <local file>] [default: default]
-s add style to html too (when html is the output)
--kitty makes the inline image encoded to kitty
--iterm makes the inline image encoded to iterm
--sixel makes the inline image encoded to sixel
-r, --raw allows raw html to run (put only on your content)
-i shortcut for putting --output inline
-m shortcut for putting --theme makurai
--hori concat images horizontal instead of vertical
--inline-options <inline-options> options for the --output inline
* center=<bool>
* width=<string> [only for images]
* height=<string> [only for images]
* scale=<f32>
* spx=<string>
* sc=<string>
* zoom=<usize> [doesn't work yet]
* x=<int> [doesn't work yet]
* y=<int> [doesn't work yet]
* exmp: --inline-options 'center=false,width=80%,height=20c,scale=0.5,spx=1920x1080,sc=100x20,zoom=2,x=16,y=8'
-h, --help Print help
-V, --version Print version
🚧 Roadmap
- mcat.nvim: a neovim plugin to use mcat inside neovim
📎 License
MIT License