···4747# Expects the [markdown viewer](https://github.com/simov/markdown-viewer)
4848# FF extension to be installed.
4949function mdp {
5050- local file="${PWD}/${1}"
5151- # if $file does not end with `.md`, bail
5050+ local file="${1}"
5151+5252+ # If it isn't already an absolute path, make it one
5353+ if [[ ! "$file" == "/"* ]]; then
5454+ file="${PWD}/${file}"
5555+ fi
5656+5757+ # If it isn't a markdown file, bail
5258 if [[ ! "$file" == *".md" ]]; then
5359 echo "Must provide a markdown file"
5460 exit 1
5561 fi
6262+5663 firefox "${file}"
5764}
5865