Formats markdown and launches it in a browser.
Mdview is now available in the AUR
If you have an AUR helper like yay
, installing is as easy as:
yay -S mdview
If you're running Debian or a derivative like Ubuntu or Pop!_OS, download the deb package.
curl -O https://github.com/mapitman/mdview/releases/download/1.4.0/mdview-1.4.0_amd64.deb
sudo dpkg --install mdview-1.4.0_amd64.deb
To remove the package:
sudo dpkg --remove mdview
On Linux, you can install mdview from the snap store. This option is only viable if the files you want to view are in your home directory. If you need to view files in other locations, try an alternate installation method.
Note: A side effect of the sandboxing of Snap packages is that every time
mdview
is executed, Snap will prompt to allow writing
the temporary file. If that is not acceptable, please choose an
alternate installation method.
sudo snap install mdview
Don't have snapd? Get set up for snaps.
Grab the correct binary for your operating system here.
If you have Golang installed...
go get github.com/mapitman/mdview
Don't have Golang? Get it now.
Usage:
mdview [options] <filename>
Formats markdown and launches it in a browser.
-b Bare HTML with no style applied.
-bare
Bare HTML with no style applied.
-h Prints mdview help message.
-help
Prints mdview help message.
-o string
Output filename. (Optional)
-v Prints mdview version.
-version
Prints mdview version.
If you do not supply an output file, mdview will write a file to your operating system's default temp directory.