#!/bin/bash
if [ -f "$1.md" ]; then
   pandoc -s "$1.md" -o "$1.html"
else
   echo "Please specify a file name (without the .md extension)"
fi