Skip to content

130+ lines of code, to render pretty-printed markdown files to your light- or dark-themed console. Written in Go using the glamour package.

License

Notifications You must be signed in to change notification settings

Zeebrow/fmt-md-text

Repository files navigation

Dr. Cat

Quickly render markdown text to your Linux* console. Written in Go with glamour.

* Windows fix coming soon™

download release

Debian (apt)

wget https://github-artifacts-zeebrow.s3.amazonaws.com/drcat/releases/debian/v1.0.0/amd64/drcat-1.0.0.deb
wget https://github-artifacts-zeebrow.s3.amazonaws.com/drcat/releases/debian/v1.0.0/amd64/drcat-1.0.0.deb.md5
md5sum -c drcat-1.0.0.deb.md5

Binary linux amd64

wget https://github-artifacts-zeebrow.s3.amazonaws.com/drcat/releases/binaries/v1.0.0/linux/amd64/drcat-1.0.0
wget https://github-artifacts-zeebrow.s3.amazonaws.com/drcat/releases/binaries/v1.0.0/linux/amd64/drcat-1.0.0.md5
md5sum -c drcat-1.0.0.md5
mv drcat-1.0.0 drcat
chmod +x drcat
./drcat -version

example usage

Be careful running as root!

drcat [-f md-filename] [-l]
drcat < README.md
drcat -f README.md
drcat -f README.md | less -R

NICE TO HAVE: detect content length exceeding terminal height and drop to $PAGER

NICE TO HAVE: -h (or some option) gives markdown formatting guide

build

git clone
go build .

test

You need to build the binary to run the tests.

go build .
go test -v

About

130+ lines of code, to render pretty-printed markdown files to your light- or dark-themed console. Written in Go using the glamour package.

Resources

License

Stars

Watchers

Forks

Packages

No packages published