Skip to content

Convert markdown to HTML and launch it in a browser.

License

Notifications You must be signed in to change notification settings

xVermillionx/mdview

 
 

Repository files navigation

Markdown View

Snap Status

Formats markdown and launches it in a browser.

Installation

Arch Linux (and derivatives)

Mdview is now available in the AUR
If you have an AUR helper like yay, installing is as easy as:

yay -S mdview

Debian Package

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

Snap Package

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.

Get it from the Snap Store

sudo snap install mdview

Don't have snapd? Get set up for snaps.

Manual Download and Install

Grab the correct binary for your operating system here.

Compile Yourself

If you have Golang installed...

go get github.com/mapitman/mdview

Don't have Golang? Get it now.

Usage

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.

About

Convert markdown to HTML and launch it in a browser.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 56.3%
  • CSS 38.0%
  • Makefile 5.0%
  • Shell 0.7%