mdcat

command module
v0.0.0-...-de040ed Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 7 Imported by: 0

README ยถ

mdcat

A terminal markdown renderer that makes your markdown files look beautiful in the terminal. Built specifically with iTerm2 users in mind.

image

Features

  • ๐ŸŽจ Syntax highlighting for code blocks
  • ๐Ÿ“ฑ Responsive terminal width handling
  • ๐Ÿ”„ Pipe support (works with cat and other tools)
  • ๐ŸŽฏ iTerm2 optimized styling
  • ๐Ÿš€ Fast rendering
  • ๐Ÿ“– Support for all standard markdown features

Installation

Using Go
go install github.com/domano/mdcat@latest
From Source
git clone https://github.com/domano/mdcat
cd mdcat
go build -o mdcat
mv mdcat /usr/local/bin/

Usage

# Read from file
mdcat README.md

# Read from stdin
cat README.md | mdcat

# Read multiple files
mdcat README.md CONTRIBUTING.md

Example

Input markdown:

# Hello World

This is a **bold** statement with some `code`.

```go
fmt.Println("Hello, World!")
```

Will be rendered with proper styling in your terminal!

Development

Requirements:

  • Go 1.19 or later
  • iTerm2 (recommended)
# Clone the repo
git clone https://github.com/domano/mdcat
cd mdcat

# Install dependencies
go mod download

# Build
go build

# Run tests
go test ./...

Contributing

Contributions are welcome! Feel free to:

  1. Fork the repository
  2. Create a feature branch
  3. Submit a Pull Request

License

MIT License - see LICENSE for details

Credits

Built with:

Author

Dino Omanovic (@domano)

Documentation ยถ

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL